//
//  VivochaContactTranscript.h
//  ios-sdk
//
//  Created by Michael Siddi on 02/07/21.
//  Copyright © 2021 Vivocha Inc. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

/// The object represents the transcript for a contact.
@interface VivochaContactTranscript : NSObject

/// The contact ID which the transcript refers to.
@property (nonatomic, readonly, strong) NSString *contactId;

/// The conversation ID, if available
@property (nonatomic, readonly, strong) NSString *conversationId;

/// The transcript, sort by receive order
- (NSArray<VivochaChatObject *> *) getMessages;

/// Creates and returns a Transcript object from a json array of messages and a contact info object.
+ (VivochaContactTranscript *)transcriptFromJSONArray:(NSArray *)json contactInfo:(VivochaContactInfo*)contactInfo;

@end

NS_ASSUME_NONNULL_END
