//
//  VivochaMessage.h
//  ios-sdk
//
//  Created by Michael Siddi on 10/22/13.
//  Copyright (c) 2013 Vivocha Inc. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "VivochaChatObject.h"

@class VivochaAttachment;

///Represents a Vivocha message during a chat contact
@interface VivochaMessage : VivochaChatObject

/**
 The text of the message.
 */
@property (nonatomic, strong) NSString *messageText;


@property (nonatomic, strong) NSString *type;

/**
 Factory method to instantiate a VivochaMessage object.
 
 @param text       the message text
 @param isOutgoing YES if it is an outgoing message, NO if it is incoming.

 @return the VivochaMessage object.
 */
+ (VivochaMessage *) messageWithText:(NSString *)text andIsOutgoing:(BOOL)isOutgoing;

+ (VivochaMessage *) messageWithText:(NSString *)text andIsOutgoing:(BOOL)isOutgoing type:(NSString *)type;

- (NSString *) getJSONString;

- (NSDictionary *) getJSON;


@end
