MigratoryData Client API for iOS
Developer's Guide and Reference Manual
MigratoryDataMessage.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2007-2019 Migratory Data Systems (http://migratorydata.com)
3  * ALL RIGHTS RESERVED. Use is subject to license terms.
4  */
5 #import <Foundation/Foundation.h>
6 #import "MigratoryDataField.h"
7 
16 @interface MigratoryDataMessage : NSObject {
17 @private
18  NSString *_subject;
19  NSString *_content;
20  NSString *_closure;
21  NSString *_replyToSubject;
22  NSArray *_fields;
23  bool _isSnapshot;
24  bool _isRecovery;
25  bool _recovery;
26  int _seq;
27  int _epoch;
28 }
29 
36 - (id) init: (NSString *)subject content:(NSString *)content;
37 
45 - (id) init: (NSString *)subject content:(NSString *)content fields:(NSArray *)fields;
46 
54 - (id) init: (NSString *)subject content:(NSString *)content closure:(NSString *)closure;
55 
64 - (id) init: (NSString *)subject content:(NSString *)content fields:(NSArray *)fields closure:(NSString *)closure;
65 
67 - (id) init: (NSString *)subject content:(NSString *)content fields:(NSArray *)fields closure:(NSString *)closure snapshot:(bool)isSnapshot;
69 
71 - (id) init: (NSString *)subject content:(NSString *)content fields:(NSArray *)fields closure:(NSString *)closure snapshot:(bool)isSnapshot recovery:(bool)recovery seq:(int)seq epoch:(int)epoch;
73 
79 - (NSString *) getSubject;
80 
86 - (NSString *) getContent;
87 
93 - (NSArray *) getFields;
94 
100 - (NSString *) getClosure;
101 
107 - (bool) isSnapshot;
108 
118 - (NSString *) getReplyToSubject;
119 
134 - (void) setReplyToSubject: (NSString *) replyToSubject;
135 
137 - (bool) isRecovery;
138 
139 - (int) getSeq;
140 
141 - (int) getEpoch;
143 @end
NSString * getSubject()
Get the subject of the message.
Represent a message.
Definition: MigratoryDataMessage.h:16
Include the declaration of the MigratoryDataField class.
NSString * getReplyToSubject()
NSString * getContent()
Get the content of the message.
NSString * getClosure()
Get the closure of the message.
bool isSnapshot()
Test whether the message is a snapshot message or not.
NSArray * getFields()
Get the fields of the message.