Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix

  • Loading branch information...
commit 789994f2cc0df315eafd8e79b082dd3257aa4a0e 1 parent 74deb51
@fy0 fy0 authored
View
3  cocoa/service.h
@@ -18,10 +18,9 @@
@protocol Sns <NSObject>
- (AuthResponse *) login_by_mail: (AuthRequest *) auth : (NSString *) mail : (NSString *) password; // throws TException
- (void) logout: (NSString *) access_token; // throws TException
-- (UserInfo *) user_info_get: (NSString *) access_token : (int64_t) uid; // throws TException
+- (UserInfo *) user_info_get: (NSString *) access_token : (int64_t) uid : (BOOL) ext_only; // throws TException
- (NSArray *) task_list: (NSString *) access_token : (int) type : (int64_t) last_id : (int64_t) num; // throws TException
- (TaskInfo *) task_get: (int64_t) access_token : (int64_t) tid : (BOOL) ext_only; // throws TException
-- (TaskInfo *) task_set: (int64_t) access_token : (int64_t) tid; // throws TException
- (int64_t) task_new: (NSString *) access_token : (TaskInfo *) task; // throws TException
- (BOOL) task_apply: (NSString *) access_token : (int64_t) tid; // throws TException
- (BOOL) task_reject: (NSString *) access_token : (int64_t) user_id; // throws TException
View
441 cocoa/service.m
@@ -601,17 +601,20 @@ - (NSString *) description {
@interface user_info_get_args : NSObject <NSCoding> {
NSString * __access_token;
int64_t __uid;
+ BOOL __ext_only;
BOOL __access_token_isset;
BOOL __uid_isset;
+ BOOL __ext_only_isset;
}
#if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
@property (nonatomic, retain, getter=access_token, setter=setAccess_token:) NSString * access_token;
@property (nonatomic, getter=uid, setter=setUid:) int64_t uid;
+@property (nonatomic, getter=ext_only, setter=setExt_only:) BOOL ext_only;
#endif
-- (id) initWithAccess_token: (NSString *) access_token uid: (int64_t) uid;
+- (id) initWithAccess_token: (NSString *) access_token uid: (int64_t) uid ext_only: (BOOL) ext_only;
- (void) read: (id <TProtocol>) inProtocol;
- (void) write: (id <TProtocol>) outProtocol;
@@ -624,17 +627,23 @@ - (int64_t) uid;
- (void) setUid: (int64_t) uid;
- (BOOL) uidIsSet;
+- (BOOL) ext_only;
+- (void) setExt_only: (BOOL) ext_only;
+- (BOOL) ext_onlyIsSet;
+
@end
@implementation user_info_get_args
-- (id) initWithAccess_token: (NSString *) access_token uid: (int64_t) uid
+- (id) initWithAccess_token: (NSString *) access_token uid: (int64_t) uid ext_only: (BOOL) ext_only
{
self = [super init];
__access_token = [access_token retain];
__access_token_isset = YES;
__uid = uid;
__uid_isset = YES;
+ __ext_only = ext_only;
+ __ext_only_isset = YES;
return self;
}
@@ -651,6 +660,11 @@ - (id) initWithCoder: (NSCoder *) decoder
__uid = [decoder decodeInt64ForKey: @"uid"];
__uid_isset = YES;
}
+ if ([decoder containsValueForKey: @"ext_only"])
+ {
+ __ext_only = [decoder decodeBoolForKey: @"ext_only"];
+ __ext_only_isset = YES;
+ }
return self;
}
@@ -664,6 +678,10 @@ - (void) encodeWithCoder: (NSCoder *) encoder
{
[encoder encodeInt64: __uid forKey: @"uid"];
}
+ if (__ext_only_isset)
+ {
+ [encoder encodeBool: __ext_only forKey: @"ext_only"];
+ }
}
- (void) dealloc
@@ -710,6 +728,23 @@ - (void) unsetUid {
__uid_isset = NO;
}
+- (BOOL) ext_only {
+ return __ext_only;
+}
+
+- (void) setExt_only: (BOOL) ext_only {
+ __ext_only = ext_only;
+ __ext_only_isset = YES;
+}
+
+- (BOOL) ext_onlyIsSet {
+ return __ext_only_isset;
+}
+
+- (void) unsetExt_only {
+ __ext_only_isset = NO;
+}
+
- (void) read: (id <TProtocol>) inProtocol
{
NSString * fieldName;
@@ -741,6 +776,14 @@ - (void) read: (id <TProtocol>) inProtocol
[TProtocolUtil skipType: fieldType onProtocol: inProtocol];
}
break;
+ case 3:
+ if (fieldType == TType_BOOL) {
+ BOOL fieldValue = [inProtocol readBool];
+ [self setExt_only: fieldValue];
+ } else {
+ [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
+ }
+ break;
default:
[TProtocolUtil skipType: fieldType onProtocol: inProtocol];
break;
@@ -764,6 +807,11 @@ - (void) write: (id <TProtocol>) outProtocol {
[outProtocol writeI64: __uid];
[outProtocol writeFieldEnd];
}
+ if (__ext_only_isset) {
+ [outProtocol writeFieldBeginWithName: @"ext_only" type: TType_BOOL fieldID: 3];
+ [outProtocol writeBool: __ext_only];
+ [outProtocol writeFieldEnd];
+ }
[outProtocol writeFieldStop];
[outProtocol writeStructEnd];
}
@@ -774,6 +822,8 @@ - (NSString *) description {
[ms appendFormat: @"\"%@\"", __access_token];
[ms appendString: @",uid:"];
[ms appendFormat: @"%qi", __uid];
+ [ms appendString: @",ext_only:"];
+ [ms appendFormat: @"%i", __ext_only];
[ms appendString: @")"];
return [NSString stringWithString: ms];
}
@@ -1710,316 +1760,6 @@ - (NSString *) description {
@end
-@interface task_set_args : NSObject <NSCoding> {
- int64_t __access_token;
- int64_t __tid;
-
- BOOL __access_token_isset;
- BOOL __tid_isset;
-}
-
-#if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
-@property (nonatomic, getter=access_token, setter=setAccess_token:) int64_t access_token;
-@property (nonatomic, getter=tid, setter=setTid:) int64_t tid;
-#endif
-
-- (id) initWithAccess_token: (int64_t) access_token tid: (int64_t) tid;
-
-- (void) read: (id <TProtocol>) inProtocol;
-- (void) write: (id <TProtocol>) outProtocol;
-
-- (int64_t) access_token;
-- (void) setAccess_token: (int64_t) access_token;
-- (BOOL) access_tokenIsSet;
-
-- (int64_t) tid;
-- (void) setTid: (int64_t) tid;
-- (BOOL) tidIsSet;
-
-@end
-
-@implementation task_set_args
-
-- (id) initWithAccess_token: (int64_t) access_token tid: (int64_t) tid
-{
- self = [super init];
- __access_token = access_token;
- __access_token_isset = YES;
- __tid = tid;
- __tid_isset = YES;
- return self;
-}
-
-- (id) initWithCoder: (NSCoder *) decoder
-{
- self = [super init];
- if ([decoder containsValueForKey: @"access_token"])
- {
- __access_token = [decoder decodeInt64ForKey: @"access_token"];
- __access_token_isset = YES;
- }
- if ([decoder containsValueForKey: @"tid"])
- {
- __tid = [decoder decodeInt64ForKey: @"tid"];
- __tid_isset = YES;
- }
- return self;
-}
-
-- (void) encodeWithCoder: (NSCoder *) encoder
-{
- if (__access_token_isset)
- {
- [encoder encodeInt64: __access_token forKey: @"access_token"];
- }
- if (__tid_isset)
- {
- [encoder encodeInt64: __tid forKey: @"tid"];
- }
-}
-
-- (void) dealloc
-{
- [super dealloc];
-}
-
-- (int64_t) access_token {
- return __access_token;
-}
-
-- (void) setAccess_token: (int64_t) access_token {
- __access_token = access_token;
- __access_token_isset = YES;
-}
-
-- (BOOL) access_tokenIsSet {
- return __access_token_isset;
-}
-
-- (void) unsetAccess_token {
- __access_token_isset = NO;
-}
-
-- (int64_t) tid {
- return __tid;
-}
-
-- (void) setTid: (int64_t) tid {
- __tid = tid;
- __tid_isset = YES;
-}
-
-- (BOOL) tidIsSet {
- return __tid_isset;
-}
-
-- (void) unsetTid {
- __tid_isset = NO;
-}
-
-- (void) read: (id <TProtocol>) inProtocol
-{
- NSString * fieldName;
- int fieldType;
- int fieldID;
-
- [inProtocol readStructBeginReturningName: NULL];
- while (true)
- {
- [inProtocol readFieldBeginReturningName: &fieldName type: &fieldType fieldID: &fieldID];
- if (fieldType == TType_STOP) {
- break;
- }
- switch (fieldID)
- {
- case 1:
- if (fieldType == TType_I64) {
- int64_t fieldValue = [inProtocol readI64];
- [self setAccess_token: fieldValue];
- } else {
- [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
- }
- break;
- case 2:
- if (fieldType == TType_I64) {
- int64_t fieldValue = [inProtocol readI64];
- [self setTid: fieldValue];
- } else {
- [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
- }
- break;
- default:
- [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
- break;
- }
- [inProtocol readFieldEnd];
- }
- [inProtocol readStructEnd];
-}
-
-- (void) write: (id <TProtocol>) outProtocol {
- [outProtocol writeStructBeginWithName: @"task_set_args"];
- if (__access_token_isset) {
- [outProtocol writeFieldBeginWithName: @"access_token" type: TType_I64 fieldID: 1];
- [outProtocol writeI64: __access_token];
- [outProtocol writeFieldEnd];
- }
- if (__tid_isset) {
- [outProtocol writeFieldBeginWithName: @"tid" type: TType_I64 fieldID: 2];
- [outProtocol writeI64: __tid];
- [outProtocol writeFieldEnd];
- }
- [outProtocol writeFieldStop];
- [outProtocol writeStructEnd];
-}
-
-- (NSString *) description {
- NSMutableString * ms = [NSMutableString stringWithString: @"task_set_args("];
- [ms appendString: @"access_token:"];
- [ms appendFormat: @"%qi", __access_token];
- [ms appendString: @",tid:"];
- [ms appendFormat: @"%qi", __tid];
- [ms appendString: @")"];
- return [NSString stringWithString: ms];
-}
-
-@end
-
-@interface Task_set_result : NSObject <NSCoding> {
- TaskInfo * __success;
-
- BOOL __success_isset;
-}
-
-#if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
-@property (nonatomic, retain, getter=success, setter=setSuccess:) TaskInfo * success;
-#endif
-
-- (id) initWithSuccess: (TaskInfo *) success;
-
-- (void) read: (id <TProtocol>) inProtocol;
-- (void) write: (id <TProtocol>) outProtocol;
-
-- (TaskInfo *) success;
-- (void) setSuccess: (TaskInfo *) success;
-- (BOOL) successIsSet;
-
-@end
-
-@implementation Task_set_result
-
-- (id) initWithSuccess: (TaskInfo *) success
-{
- self = [super init];
- __success = [success retain];
- __success_isset = YES;
- return self;
-}
-
-- (id) initWithCoder: (NSCoder *) decoder
-{
- self = [super init];
- if ([decoder containsValueForKey: @"success"])
- {
- __success = [[decoder decodeObjectForKey: @"success"] retain];
- __success_isset = YES;
- }
- return self;
-}
-
-- (void) encodeWithCoder: (NSCoder *) encoder
-{
- if (__success_isset)
- {
- [encoder encodeObject: __success forKey: @"success"];
- }
-}
-
-- (void) dealloc
-{
- [__success release];
- [super dealloc];
-}
-
-- (TaskInfo *) success {
- return [[__success retain] autorelease];
-}
-
-- (void) setSuccess: (TaskInfo *) success {
- [success retain];
- [__success release];
- __success = success;
- __success_isset = YES;
-}
-
-- (BOOL) successIsSet {
- return __success_isset;
-}
-
-- (void) unsetSuccess {
- [__success release];
- __success = nil;
- __success_isset = NO;
-}
-
-- (void) read: (id <TProtocol>) inProtocol
-{
- NSString * fieldName;
- int fieldType;
- int fieldID;
-
- [inProtocol readStructBeginReturningName: NULL];
- while (true)
- {
- [inProtocol readFieldBeginReturningName: &fieldName type: &fieldType fieldID: &fieldID];
- if (fieldType == TType_STOP) {
- break;
- }
- switch (fieldID)
- {
- case 0:
- if (fieldType == TType_STRUCT) {
- TaskInfo *fieldValue = [[TaskInfo alloc] init];
- [fieldValue read: inProtocol];
- [self setSuccess: fieldValue];
- [fieldValue release];
- } else {
- [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
- }
- break;
- default:
- [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
- break;
- }
- [inProtocol readFieldEnd];
- }
- [inProtocol readStructEnd];
-}
-
-- (void) write: (id <TProtocol>) outProtocol {
- [outProtocol writeStructBeginWithName: @"Task_set_result"];
-
- if (__success_isset) {
- if (__success != nil) {
- [outProtocol writeFieldBeginWithName: @"success" type: TType_STRUCT fieldID: 0];
- [__success write: outProtocol];
- [outProtocol writeFieldEnd];
- }
- }
- [outProtocol writeFieldStop];
- [outProtocol writeStructEnd];
-}
-
-- (NSString *) description {
- NSMutableString * ms = [NSMutableString stringWithString: @"Task_set_result("];
- [ms appendString: @"success:"];
- [ms appendFormat: @"%@", __success];
- [ms appendString: @")"];
- return [NSString stringWithString: ms];
-}
-
-@end
-
@interface task_new_args : NSObject <NSCoding> {
NSString * __access_token;
TaskInfo * __task;
@@ -3368,7 +3108,7 @@ - (void) logout: (NSString *) access_token
[self recv_logout];
}
-- (void) send_user_info_get: (NSString *) access_token : (int64_t) uid
+- (void) send_user_info_get: (NSString *) access_token : (int64_t) uid : (BOOL) ext_only
{
[outProtocol writeMessageBeginWithName: @"user_info_get" type: TMessageType_CALL sequenceID: 0];
[outProtocol writeStructBeginWithName: @"user_info_get_args"];
@@ -3380,6 +3120,9 @@ - (void) send_user_info_get: (NSString *) access_token : (int64_t) uid
[outProtocol writeFieldBeginWithName: @"uid" type: TType_I64 fieldID: 2];
[outProtocol writeI64: uid];
[outProtocol writeFieldEnd];
+ [outProtocol writeFieldBeginWithName: @"ext_only" type: TType_BOOL fieldID: 3];
+ [outProtocol writeBool: ext_only];
+ [outProtocol writeFieldEnd];
[outProtocol writeFieldStop];
[outProtocol writeStructEnd];
[outProtocol writeMessageEnd];
@@ -3405,9 +3148,9 @@ - (UserInfo *) recv_user_info_get
reason: @"user_info_get failed: unknown result"];
}
-- (UserInfo *) user_info_get: (NSString *) access_token : (int64_t) uid
+- (UserInfo *) user_info_get: (NSString *) access_token : (int64_t) uid : (BOOL) ext_only
{
- [self send_user_info_get: access_token : uid];
+ [self send_user_info_get: access_token : uid : ext_only];
return [self recv_user_info_get];
}
@@ -3504,47 +3247,6 @@ - (TaskInfo *) task_get: (int64_t) access_token : (int64_t) tid : (BOOL) ext_onl
return [self recv_task_get];
}
-- (void) send_task_set: (int64_t) access_token : (int64_t) tid
-{
- [outProtocol writeMessageBeginWithName: @"task_set" type: TMessageType_CALL sequenceID: 0];
- [outProtocol writeStructBeginWithName: @"task_set_args"];
- [outProtocol writeFieldBeginWithName: @"access_token" type: TType_I64 fieldID: 1];
- [outProtocol writeI64: access_token];
- [outProtocol writeFieldEnd];
- [outProtocol writeFieldBeginWithName: @"tid" type: TType_I64 fieldID: 2];
- [outProtocol writeI64: tid];
- [outProtocol writeFieldEnd];
- [outProtocol writeFieldStop];
- [outProtocol writeStructEnd];
- [outProtocol writeMessageEnd];
- [[outProtocol transport] flush];
-}
-
-- (TaskInfo *) recv_task_set
-{
- int msgType = 0;
- [inProtocol readMessageBeginReturningName: nil type: &msgType sequenceID: NULL];
- if (msgType == TMessageType_EXCEPTION) {
- TApplicationException * x = [TApplicationException read: inProtocol];
- [inProtocol readMessageEnd];
- @throw x;
- }
- Task_set_result * result = [[[Task_set_result alloc] init] autorelease];
- [result read: inProtocol];
- [inProtocol readMessageEnd];
- if ([result successIsSet]) {
- return [result success];
- }
- @throw [TApplicationException exceptionWithType: TApplicationException_MISSING_RESULT
- reason: @"task_set failed: unknown result"];
-}
-
-- (TaskInfo *) task_set: (int64_t) access_token : (int64_t) tid
-{
- [self send_task_set: access_token : tid];
- return [self recv_task_set];
-}
-
- (void) send_task_new: (NSString *) access_token : (TaskInfo *) task
{
[outProtocol writeMessageBeginWithName: @"task_new" type: TMessageType_CALL sequenceID: 0];
@@ -3772,14 +3474,6 @@ - (id) initWithSns: (id <Sns>) service
[mMethodMap setValue: invocation forKey: @"task_get"];
}
{
- SEL s = @selector(process_task_set_withSequenceID:inProtocol:outProtocol:);
- NSMethodSignature * sig = [self methodSignatureForSelector: s];
- NSInvocation * invocation = [NSInvocation invocationWithMethodSignature: sig];
- [invocation setSelector: s];
- [invocation retainArguments];
- [mMethodMap setValue: invocation forKey: @"task_set"];
- }
- {
SEL s = @selector(process_task_new_withSequenceID:inProtocol:outProtocol:);
NSMethodSignature * sig = [self methodSignatureForSelector: s];
NSInvocation * invocation = [NSInvocation invocationWithMethodSignature: sig];
@@ -3892,7 +3586,7 @@ - (void) process_user_info_get_withSequenceID: (int32_t) seqID inProtocol: (id<T
[args read: inProtocol];
[inProtocol readMessageEnd];
User_info_get_result * result = [[User_info_get_result alloc] init];
- [result setSuccess: [mService user_info_get: [args access_token]: [args uid]]];
+ [result setSuccess: [mService user_info_get: [args access_token]: [args uid]: [args ext_only]]];
[outProtocol writeMessageBeginWithName: @"user_info_get"
type: TMessageType_REPLY
sequenceID: seqID];
@@ -3937,23 +3631,6 @@ - (void) process_task_get_withSequenceID: (int32_t) seqID inProtocol: (id<TProto
[args release];
}
-- (void) process_task_set_withSequenceID: (int32_t) seqID inProtocol: (id<TProtocol>) inProtocol outProtocol: (id<TProtocol>) outProtocol
-{
- task_set_args * args = [[task_set_args alloc] init];
- [args read: inProtocol];
- [inProtocol readMessageEnd];
- Task_set_result * result = [[Task_set_result alloc] init];
- [result setSuccess: [mService task_set: [args access_token]: [args tid]]];
- [outProtocol writeMessageBeginWithName: @"task_set"
- type: TMessageType_REPLY
- sequenceID: seqID];
- [result write: outProtocol];
- [outProtocol writeMessageEnd];
- [[outProtocol transport] flush];
- [result release];
- [args release];
-}
-
- (void) process_task_new_withSequenceID: (int32_t) seqID inProtocol: (id<TProtocol>) inProtocol outProtocol: (id<TProtocol>) outProtocol
{
task_new_args * args = [[task_new_args alloc] init];
View
187 cocoa/type.h
@@ -13,12 +13,6 @@
#import <TProcessor.h>
-enum Gender {
- Gender_MALE = 0,
- Gender_FEMALE = 1,
- Gender_UNKNOW = 2
-};
-
enum TaskStat {
TaskStat_NONE = 0,
TaskStat_ACCEPT = 1,
@@ -33,6 +27,12 @@ enum TasklistType {
TasklistType_FAVOURITES = 4
};
+enum UserGender {
+ UserGender_Unknown = 0,
+ UserGender_Male = 1,
+ UserGender_Female = 2
+};
+
typedef int64_t timestamp;
@interface AuthRequest : NSObject <NSCoding> {
@@ -112,69 +112,6 @@ typedef int64_t timestamp;
@end
-@interface UserInfo : NSObject <NSCoding> {
- NSString * __name;
- int __gender;
- NSString * __org;
- NSString * __job;
- NSString * __small_avator;
- NSString * __big_avator;
- NSString * __intro;
-
- BOOL __name_isset;
- BOOL __gender_isset;
- BOOL __org_isset;
- BOOL __job_isset;
- BOOL __small_avator_isset;
- BOOL __big_avator_isset;
- BOOL __intro_isset;
-}
-
-#if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
-@property (nonatomic, retain, getter=name, setter=setName:) NSString * name;
-@property (nonatomic, getter=gender, setter=setGender:) int gender;
-@property (nonatomic, retain, getter=org, setter=setOrg:) NSString * org;
-@property (nonatomic, retain, getter=job, setter=setJob:) NSString * job;
-@property (nonatomic, retain, getter=small_avator, setter=setSmall_avator:) NSString * small_avator;
-@property (nonatomic, retain, getter=big_avator, setter=setBig_avator:) NSString * big_avator;
-@property (nonatomic, retain, getter=intro, setter=setIntro:) NSString * intro;
-#endif
-
-- (id) initWithName: (NSString *) name gender: (int) gender org: (NSString *) org job: (NSString *) job small_avator: (NSString *) small_avator big_avator: (NSString *) big_avator intro: (NSString *) intro;
-
-- (void) read: (id <TProtocol>) inProtocol;
-- (void) write: (id <TProtocol>) outProtocol;
-
-- (NSString *) name;
-- (void) setName: (NSString *) name;
-- (BOOL) nameIsSet;
-
-- (int) gender;
-- (void) setGender: (int) gender;
-- (BOOL) genderIsSet;
-
-- (NSString *) org;
-- (void) setOrg: (NSString *) org;
-- (BOOL) orgIsSet;
-
-- (NSString *) job;
-- (void) setJob: (NSString *) job;
-- (BOOL) jobIsSet;
-
-- (NSString *) small_avator;
-- (void) setSmall_avator: (NSString *) small_avator;
-- (BOOL) small_avatorIsSet;
-
-- (NSString *) big_avator;
-- (void) setBig_avator: (NSString *) big_avator;
-- (BOOL) big_avatorIsSet;
-
-- (NSString *) intro;
-- (void) setIntro: (NSString *) intro;
-- (BOOL) introIsSet;
-
-@end
-
@interface TaskBasic : NSObject <NSCoding> {
int64_t __tid;
NSString * __name;
@@ -329,6 +266,118 @@ typedef int64_t timestamp;
@end
+@interface UserBasic : NSObject <NSCoding> {
+ NSString * __name;
+ int __gender;
+ NSString * __org;
+ NSString * __job;
+ NSString * __avator;
+
+ BOOL __name_isset;
+ BOOL __gender_isset;
+ BOOL __org_isset;
+ BOOL __job_isset;
+ BOOL __avator_isset;
+}
+
+#if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
+@property (nonatomic, retain, getter=name, setter=setName:) NSString * name;
+@property (nonatomic, getter=gender, setter=setGender:) int gender;
+@property (nonatomic, retain, getter=org, setter=setOrg:) NSString * org;
+@property (nonatomic, retain, getter=job, setter=setJob:) NSString * job;
+@property (nonatomic, retain, getter=avator, setter=setAvator:) NSString * avator;
+#endif
+
+- (id) initWithName: (NSString *) name gender: (int) gender org: (NSString *) org job: (NSString *) job avator: (NSString *) avator;
+
+- (void) read: (id <TProtocol>) inProtocol;
+- (void) write: (id <TProtocol>) outProtocol;
+
+- (NSString *) name;
+- (void) setName: (NSString *) name;
+- (BOOL) nameIsSet;
+
+- (int) gender;
+- (void) setGender: (int) gender;
+- (BOOL) genderIsSet;
+
+- (NSString *) org;
+- (void) setOrg: (NSString *) org;
+- (BOOL) orgIsSet;
+
+- (NSString *) job;
+- (void) setJob: (NSString *) job;
+- (BOOL) jobIsSet;
+
+- (NSString *) avator;
+- (void) setAvator: (NSString *) avator;
+- (BOOL) avatorIsSet;
+
+@end
+
+@interface UserExt : NSObject <NSCoding> {
+ NSString * __intro;
+ NSArray * __following;
+ NSArray * __befollowed;
+
+ BOOL __intro_isset;
+ BOOL __following_isset;
+ BOOL __befollowed_isset;
+}
+
+#if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
+@property (nonatomic, retain, getter=intro, setter=setIntro:) NSString * intro;
+@property (nonatomic, retain, getter=following, setter=setFollowing:) NSArray * following;
+@property (nonatomic, retain, getter=befollowed, setter=setBefollowed:) NSArray * befollowed;
+#endif
+
+- (id) initWithIntro: (NSString *) intro following: (NSArray *) following befollowed: (NSArray *) befollowed;
+
+- (void) read: (id <TProtocol>) inProtocol;
+- (void) write: (id <TProtocol>) outProtocol;
+
+- (NSString *) intro;
+- (void) setIntro: (NSString *) intro;
+- (BOOL) introIsSet;
+
+- (NSArray *) following;
+- (void) setFollowing: (NSArray *) following;
+- (BOOL) followingIsSet;
+
+- (NSArray *) befollowed;
+- (void) setBefollowed: (NSArray *) befollowed;
+- (BOOL) befollowedIsSet;
+
+@end
+
+@interface UserInfo : NSObject <NSCoding> {
+ UserBasic * __baisc;
+ UserExt * __ext;
+
+ BOOL __baisc_isset;
+ BOOL __ext_isset;
+}
+
+#if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)
+@property (nonatomic, retain, getter=baisc, setter=setBaisc:) UserBasic * baisc;
+@property (nonatomic, retain, getter=ext, setter=setExt:) UserExt * ext;
+#endif
+
+- (id) initWithBaisc: (UserBasic *) baisc ext: (UserExt *) ext;
+
+- (void) read: (id <TProtocol>) inProtocol;
+- (void) write: (id <TProtocol>) outProtocol;
+
+- (UserBasic *) baisc;
+- (void) setBaisc: (UserBasic *) baisc;
+- (BOOL) baiscIsSet;
+
+- (UserExt *) ext;
+- (void) setExt: (UserExt *) ext;
+- (BOOL) extIsSet;
+
+@end
+
@interface typeConstants : NSObject {
}
@end
View
1,830 cocoa/type.m
@@ -473,112 +473,158 @@ - (NSString *) description {
@end
-@implementation UserInfo
+@implementation TaskBasic
-- (id) initWithName: (NSString *) name gender: (int) gender org: (NSString *) org job: (NSString *) job small_avator: (NSString *) small_avator big_avator: (NSString *) big_avator intro: (NSString *) intro
+- (id) initWithTid: (int64_t) tid name: (NSString *) name owner: (int64_t) owner intro: (NSString *) intro plan_num: (int64_t) plan_num begin_time: (int64_t) begin_time end_time: (int64_t) end_time apply_num: (int64_t) apply_num invite_num: (int64_t) invite_num accept_num: (int64_t) accept_num
{
self = [super init];
+ __tid = tid;
+ __tid_isset = YES;
__name = [name retain];
__name_isset = YES;
- __gender = gender;
- __gender_isset = YES;
- __org = [org retain];
- __org_isset = YES;
- __job = [job retain];
- __job_isset = YES;
- __small_avator = [small_avator retain];
- __small_avator_isset = YES;
- __big_avator = [big_avator retain];
- __big_avator_isset = YES;
+ __owner = owner;
+ __owner_isset = YES;
__intro = [intro retain];
__intro_isset = YES;
+ __plan_num = plan_num;
+ __plan_num_isset = YES;
+ __begin_time = begin_time;
+ __begin_time_isset = YES;
+ __end_time = end_time;
+ __end_time_isset = YES;
+ __apply_num = apply_num;
+ __apply_num_isset = YES;
+ __invite_num = invite_num;
+ __invite_num_isset = YES;
+ __accept_num = accept_num;
+ __accept_num_isset = YES;
return self;
}
- (id) initWithCoder: (NSCoder *) decoder
{
self = [super init];
+ if ([decoder containsValueForKey: @"tid"])
+ {
+ __tid = [decoder decodeInt64ForKey: @"tid"];
+ __tid_isset = YES;
+ }
if ([decoder containsValueForKey: @"name"])
{
__name = [[decoder decodeObjectForKey: @"name"] retain];
__name_isset = YES;
}
- if ([decoder containsValueForKey: @"gender"])
+ if ([decoder containsValueForKey: @"owner"])
{
- __gender = [decoder decodeIntForKey: @"gender"];
- __gender_isset = YES;
+ __owner = [decoder decodeInt64ForKey: @"owner"];
+ __owner_isset = YES;
}
- if ([decoder containsValueForKey: @"org"])
+ if ([decoder containsValueForKey: @"intro"])
{
- __org = [[decoder decodeObjectForKey: @"org"] retain];
- __org_isset = YES;
+ __intro = [[decoder decodeObjectForKey: @"intro"] retain];
+ __intro_isset = YES;
}
- if ([decoder containsValueForKey: @"job"])
+ if ([decoder containsValueForKey: @"plan_num"])
{
- __job = [[decoder decodeObjectForKey: @"job"] retain];
- __job_isset = YES;
+ __plan_num = [decoder decodeInt64ForKey: @"plan_num"];
+ __plan_num_isset = YES;
}
- if ([decoder containsValueForKey: @"small_avator"])
+ if ([decoder containsValueForKey: @"begin_time"])
{
- __small_avator = [[decoder decodeObjectForKey: @"small_avator"] retain];
- __small_avator_isset = YES;
+ __begin_time = [decoder decodeInt64ForKey: @"begin_time"];
+ __begin_time_isset = YES;
}
- if ([decoder containsValueForKey: @"big_avator"])
+ if ([decoder containsValueForKey: @"end_time"])
{
- __big_avator = [[decoder decodeObjectForKey: @"big_avator"] retain];
- __big_avator_isset = YES;
+ __end_time = [decoder decodeInt64ForKey: @"end_time"];
+ __end_time_isset = YES;
}
- if ([decoder containsValueForKey: @"intro"])
+ if ([decoder containsValueForKey: @"apply_num"])
{
- __intro = [[decoder decodeObjectForKey: @"intro"] retain];
- __intro_isset = YES;
+ __apply_num = [decoder decodeInt64ForKey: @"apply_num"];
+ __apply_num_isset = YES;
+ }
+ if ([decoder containsValueForKey: @"invite_num"])
+ {
+ __invite_num = [decoder decodeInt64ForKey: @"invite_num"];
+ __invite_num_isset = YES;
+ }
+ if ([decoder containsValueForKey: @"accept_num"])
+ {
+ __accept_num = [decoder decodeInt64ForKey: @"accept_num"];
+ __accept_num_isset = YES;
}
return self;
}
- (void) encodeWithCoder: (NSCoder *) encoder
{
+ if (__tid_isset)
+ {
+ [encoder encodeInt64: __tid forKey: @"tid"];
+ }
if (__name_isset)
{
[encoder encodeObject: __name forKey: @"name"];
}
- if (__gender_isset)
+ if (__owner_isset)
{
- [encoder encodeInt: __gender forKey: @"gender"];
+ [encoder encodeInt64: __owner forKey: @"owner"];
}
- if (__org_isset)
+ if (__intro_isset)
{
- [encoder encodeObject: __org forKey: @"org"];
+ [encoder encodeObject: __intro forKey: @"intro"];
}
- if (__job_isset)
+ if (__plan_num_isset)
{
- [encoder encodeObject: __job forKey: @"job"];
+ [encoder encodeInt64: __plan_num forKey: @"plan_num"];
}
- if (__small_avator_isset)
+ if (__begin_time_isset)
{
- [encoder encodeObject: __small_avator forKey: @"small_avator"];
+ [encoder encodeInt64: __begin_time forKey: @"begin_time"];
}
- if (__big_avator_isset)
+ if (__end_time_isset)
{
- [encoder encodeObject: __big_avator forKey: @"big_avator"];
+ [encoder encodeInt64: __end_time forKey: @"end_time"];
}
- if (__intro_isset)
+ if (__apply_num_isset)
{
- [encoder encodeObject: __intro forKey: @"intro"];
+ [encoder encodeInt64: __apply_num forKey: @"apply_num"];
+ }
+ if (__invite_num_isset)
+ {
+ [encoder encodeInt64: __invite_num forKey: @"invite_num"];
+ }
+ if (__accept_num_isset)
+ {
+ [encoder encodeInt64: __accept_num forKey: @"accept_num"];
}
}
- (void) dealloc
{
[__name release];
- [__org release];
- [__job release];
- [__small_avator release];
- [__big_avator release];
[__intro release];
[super dealloc];
}
+- (int64_t) tid {
+ return __tid;
+}
+
+- (void) setTid: (int64_t) tid {
+ __tid = tid;
+ __tid_isset = YES;
+}
+
+- (BOOL) tidIsSet {
+ return __tid_isset;
+}
+
+- (void) unsetTid {
+ __tid_isset = NO;
+}
+
- (NSString *) name {
return [[__name retain] autorelease];
}
@@ -600,163 +646,181 @@ - (void) unsetName {
__name_isset = NO;
}
-- (int) gender {
- return __gender;
+- (int64_t) owner {
+ return __owner;
}
-- (void) setGender: (int) gender {
- __gender = gender;
- __gender_isset = YES;
+- (void) setOwner: (int64_t) owner {
+ __owner = owner;
+ __owner_isset = YES;
}
-- (BOOL) genderIsSet {
- return __gender_isset;
+- (BOOL) ownerIsSet {
+ return __owner_isset;
}
-- (void) unsetGender {
- __gender_isset = NO;
+- (void) unsetOwner {
+ __owner_isset = NO;
}
-- (NSString *) org {
- return [[__org retain] autorelease];
+- (NSString *) intro {
+ return [[__intro retain] autorelease];
}
-- (void) setOrg: (NSString *) org {
- [org retain];
- [__org release];
- __org = org;
- __org_isset = YES;
+- (void) setIntro: (NSString *) intro {
+ [intro retain];
+ [__intro release];
+ __intro = intro;
+ __intro_isset = YES;
}
-- (BOOL) orgIsSet {
- return __org_isset;
+- (BOOL) introIsSet {
+ return __intro_isset;
}
-- (void) unsetOrg {
- [__org release];
- __org = nil;
- __org_isset = NO;
+- (void) unsetIntro {
+ [__intro release];
+ __intro = nil;
+ __intro_isset = NO;
}
-- (NSString *) job {
- return [[__job retain] autorelease];
+- (int64_t) plan_num {
+ return __plan_num;
}
-- (void) setJob: (NSString *) job {
- [job retain];
- [__job release];
- __job = job;
- __job_isset = YES;
+- (void) setPlan_num: (int64_t) plan_num {
+ __plan_num = plan_num;
+ __plan_num_isset = YES;
}
-- (BOOL) jobIsSet {
- return __job_isset;
+- (BOOL) plan_numIsSet {
+ return __plan_num_isset;
}
-- (void) unsetJob {
- [__job release];
- __job = nil;
- __job_isset = NO;
+- (void) unsetPlan_num {
+ __plan_num_isset = NO;
}
-- (NSString *) small_avator {
- return [[__small_avator retain] autorelease];
+- (int64_t) begin_time {
+ return __begin_time;
}
-- (void) setSmall_avator: (NSString *) small_avator {
- [small_avator retain];
- [__small_avator release];
- __small_avator = small_avator;
- __small_avator_isset = YES;
+- (void) setBegin_time: (int64_t) begin_time {
+ __begin_time = begin_time;
+ __begin_time_isset = YES;
}
-- (BOOL) small_avatorIsSet {
- return __small_avator_isset;
+- (BOOL) begin_timeIsSet {
+ return __begin_time_isset;
}
-- (void) unsetSmall_avator {
- [__small_avator release];
- __small_avator = nil;
- __small_avator_isset = NO;
+- (void) unsetBegin_time {
+ __begin_time_isset = NO;
}
-- (NSString *) big_avator {
- return [[__big_avator retain] autorelease];
+- (int64_t) end_time {
+ return __end_time;
}
-- (void) setBig_avator: (NSString *) big_avator {
- [big_avator retain];
- [__big_avator release];
- __big_avator = big_avator;
- __big_avator_isset = YES;
+- (void) setEnd_time: (int64_t) end_time {
+ __end_time = end_time;
+ __end_time_isset = YES;
}
-- (BOOL) big_avatorIsSet {
- return __big_avator_isset;
+- (BOOL) end_timeIsSet {
+ return __end_time_isset;
}
-- (void) unsetBig_avator {
- [__big_avator release];
- __big_avator = nil;
- __big_avator_isset = NO;
+- (void) unsetEnd_time {
+ __end_time_isset = NO;
}
-- (NSString *) intro {
- return [[__intro retain] autorelease];
+- (int64_t) apply_num {
+ return __apply_num;
}
-- (void) setIntro: (NSString *) intro {
- [intro retain];
- [__intro release];
- __intro = intro;
- __intro_isset = YES;
+- (void) setApply_num: (int64_t) apply_num {
+ __apply_num = apply_num;
+ __apply_num_isset = YES;
}
-- (BOOL) introIsSet {
- return __intro_isset;
+- (BOOL) apply_numIsSet {
+ return __apply_num_isset;
}
-- (void) unsetIntro {
- [__intro release];
- __intro = nil;
- __intro_isset = NO;
+- (void) unsetApply_num {
+ __apply_num_isset = NO;
}
-- (void) read: (id <TProtocol>) inProtocol
-{
- NSString * fieldName;
- int fieldType;
- int fieldID;
+- (int64_t) invite_num {
+ return __invite_num;
+}
- [inProtocol readStructBeginReturningName: NULL];
- while (true)
- {
- [inProtocol readFieldBeginReturningName: &fieldName type: &fieldType fieldID: &fieldID];
- if (fieldType == TType_STOP) {
- break;
- }
- switch (fieldID)
- {
- case 1:
- if (fieldType == TType_STRING) {
- NSString * fieldValue = [inProtocol readString];
- [self setName: fieldValue];
- } else {
- [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
- }
- break;
- case 2:
- if (fieldType == TType_I32) {
- int fieldValue = [inProtocol readI32];
- [self setGender: fieldValue];
+- (void) setInvite_num: (int64_t) invite_num {
+ __invite_num = invite_num;
+ __invite_num_isset = YES;
+}
+
+- (BOOL) invite_numIsSet {
+ return __invite_num_isset;
+}
+
+- (void) unsetInvite_num {
+ __invite_num_isset = NO;
+}
+
+- (int64_t) accept_num {
+ return __accept_num;
+}
+
+- (void) setAccept_num: (int64_t) accept_num {
+ __accept_num = accept_num;
+ __accept_num_isset = YES;
+}
+
+- (BOOL) accept_numIsSet {
+ return __accept_num_isset;
+}
+
+- (void) unsetAccept_num {
+ __accept_num_isset = NO;
+}
+
+- (void) read: (id <TProtocol>) inProtocol
+{
+ NSString * fieldName;
+ int fieldType;
+ int fieldID;
+
+ [inProtocol readStructBeginReturningName: NULL];
+ while (true)
+ {
+ [inProtocol readFieldBeginReturningName: &fieldName type: &fieldType fieldID: &fieldID];
+ if (fieldType == TType_STOP) {
+ break;
+ }
+ switch (fieldID)
+ {
+ case 1:
+ if (fieldType == TType_I64) {
+ int64_t fieldValue = [inProtocol readI64];
+ [self setTid: fieldValue];
} else {
[TProtocolUtil skipType: fieldType onProtocol: inProtocol];
}
break;
- case 3:
+ case 2:
if (fieldType == TType_STRING) {
NSString * fieldValue = [inProtocol readString];
- [self setOrg: fieldValue];
+ [self setName: fieldValue];
+ } else {
+ [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
+ }
+ break;
+ case 3:
+ if (fieldType == TType_I64) {
+ int64_t fieldValue = [inProtocol readI64];
+ [self setOwner: fieldValue];
} else {
[TProtocolUtil skipType: fieldType onProtocol: inProtocol];
}
@@ -764,31 +828,55 @@ - (void) read: (id <TProtocol>) inProtocol
case 4:
if (fieldType == TType_STRING) {
NSString * fieldValue = [inProtocol readString];
- [self setJob: fieldValue];
+ [self setIntro: fieldValue];
} else {
[TProtocolUtil skipType: fieldType onProtocol: inProtocol];
}
break;
case 5:
- if (fieldType == TType_STRING) {
- NSString * fieldValue = [inProtocol readString];
- [self setSmall_avator: fieldValue];
+ if (fieldType == TType_I64) {
+ int64_t fieldValue = [inProtocol readI64];
+ [self setPlan_num: fieldValue];
} else {
[TProtocolUtil skipType: fieldType onProtocol: inProtocol];
}
break;
case 6:
- if (fieldType == TType_STRING) {
- NSString * fieldValue = [inProtocol readString];
- [self setBig_avator: fieldValue];
+ if (fieldType == TType_I64) {
+ int64_t fieldValue = [inProtocol readI64];
+ [self setBegin_time: fieldValue];
} else {
[TProtocolUtil skipType: fieldType onProtocol: inProtocol];
}
break;
case 7:
- if (fieldType == TType_STRING) {
- NSString * fieldValue = [inProtocol readString];
- [self setIntro: fieldValue];
+ if (fieldType == TType_I64) {
+ int64_t fieldValue = [inProtocol readI64];
+ [self setEnd_time: fieldValue];
+ } else {
+ [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
+ }
+ break;
+ case 8:
+ if (fieldType == TType_I64) {
+ int64_t fieldValue = [inProtocol readI64];
+ [self setApply_num: fieldValue];
+ } else {
+ [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
+ }
+ break;
+ case 9:
+ if (fieldType == TType_I64) {
+ int64_t fieldValue = [inProtocol readI64];
+ [self setInvite_num: fieldValue];
+ } else {
+ [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
+ }
+ break;
+ case 10:
+ if (fieldType == TType_I64) {
+ int64_t fieldValue = [inProtocol readI64];
+ [self setAccept_num: fieldValue];
} else {
[TProtocolUtil skipType: fieldType onProtocol: inProtocol];
}
@@ -803,391 +891,772 @@ - (void) read: (id <TProtocol>) inProtocol
}
- (void) write: (id <TProtocol>) outProtocol {
- [outProtocol writeStructBeginWithName: @"UserInfo"];
+ [outProtocol writeStructBeginWithName: @"TaskBasic"];
+ if (__tid_isset) {
+ [outProtocol writeFieldBeginWithName: @"tid" type: TType_I64 fieldID: 1];
+ [outProtocol writeI64: __tid];
+ [outProtocol writeFieldEnd];
+ }
if (__name_isset) {
if (__name != nil) {
- [outProtocol writeFieldBeginWithName: @"name" type: TType_STRING fieldID: 1];
+ [outProtocol writeFieldBeginWithName: @"name" type: TType_STRING fieldID: 2];
[outProtocol writeString: __name];
[outProtocol writeFieldEnd];
}
}
- if (__gender_isset) {
- [outProtocol writeFieldBeginWithName: @"gender" type: TType_I32 fieldID: 2];
- [outProtocol writeI32: __gender];
+ if (__owner_isset) {
+ [outProtocol writeFieldBeginWithName: @"owner" type: TType_I64 fieldID: 3];
+ [outProtocol writeI64: __owner];
[outProtocol writeFieldEnd];
}
- if (__org_isset) {
- if (__org != nil) {
- [outProtocol writeFieldBeginWithName: @"org" type: TType_STRING fieldID: 3];
- [outProtocol writeString: __org];
+ if (__intro_isset) {
+ if (__intro != nil) {
+ [outProtocol writeFieldBeginWithName: @"intro" type: TType_STRING fieldID: 4];
+ [outProtocol writeString: __intro];
[outProtocol writeFieldEnd];
}
}
- if (__job_isset) {
- if (__job != nil) {
- [outProtocol writeFieldBeginWithName: @"job" type: TType_STRING fieldID: 4];
- [outProtocol writeString: __job];
- [outProtocol writeFieldEnd];
- }
+ if (__plan_num_isset) {
+ [outProtocol writeFieldBeginWithName: @"plan_num" type: TType_I64 fieldID: 5];
+ [outProtocol writeI64: __plan_num];
+ [outProtocol writeFieldEnd];
}
- if (__small_avator_isset) {
- if (__small_avator != nil) {
- [outProtocol writeFieldBeginWithName: @"small_avator" type: TType_STRING fieldID: 5];
- [outProtocol writeString: __small_avator];
- [outProtocol writeFieldEnd];
- }
+ if (__begin_time_isset) {
+ [outProtocol writeFieldBeginWithName: @"begin_time" type: TType_I64 fieldID: 6];
+ [outProtocol writeI64: __begin_time];
+ [outProtocol writeFieldEnd];
}
- if (__big_avator_isset) {
- if (__big_avator != nil) {
- [outProtocol writeFieldBeginWithName: @"big_avator" type: TType_STRING fieldID: 6];
- [outProtocol writeString: __big_avator];
- [outProtocol writeFieldEnd];
- }
+ if (__end_time_isset) {
+ [outProtocol writeFieldBeginWithName: @"end_time" type: TType_I64 fieldID: 7];
+ [outProtocol writeI64: __end_time];
+ [outProtocol writeFieldEnd];
}
- if (__intro_isset) {
- if (__intro != nil) {
- [outProtocol writeFieldBeginWithName: @"intro" type: TType_STRING fieldID: 7];
- [outProtocol writeString: __intro];
- [outProtocol writeFieldEnd];
- }
+ if (__apply_num_isset) {
+ [outProtocol writeFieldBeginWithName: @"apply_num" type: TType_I64 fieldID: 8];
+ [outProtocol writeI64: __apply_num];
+ [outProtocol writeFieldEnd];
+ }
+ if (__invite_num_isset) {
+ [outProtocol writeFieldBeginWithName: @"invite_num" type: TType_I64 fieldID: 9];
+ [outProtocol writeI64: __invite_num];
+ [outProtocol writeFieldEnd];
+ }
+ if (__accept_num_isset) {
+ [outProtocol writeFieldBeginWithName: @"accept_num" type: TType_I64 fieldID: 10];
+ [outProtocol writeI64: __accept_num];
+ [outProtocol writeFieldEnd];
}
[outProtocol writeFieldStop];
[outProtocol writeStructEnd];
}
- (NSString *) description {
- NSMutableString * ms = [NSMutableString stringWithString: @"UserInfo("];
- [ms appendString: @"name:"];
+ NSMutableString * ms = [NSMutableString stringWithString: @"TaskBasic("];
+ [ms appendString: @"tid:"];
+ [ms appendFormat: @"%qi", __tid];
+ [ms appendString: @",name:"];
[ms appendFormat: @"\"%@\"", __name];
- [ms appendString: @",gender:"];
- [ms appendFormat: @"%i", __gender];
- [ms appendString: @",org:"];
- [ms appendFormat: @"\"%@\"", __org];
- [ms appendString: @",job:"];
- [ms appendFormat: @"\"%@\"", __job];
- [ms appendString: @",small_avator:"];
- [ms appendFormat: @"\"%@\"", __small_avator];
- [ms appendString: @",big_avator:"];
- [ms appendFormat: @"\"%@\"", __big_avator];
+ [ms appendString: @",owner:"];
+ [ms appendFormat: @"%qi", __owner];
[ms appendString: @",intro:"];
[ms appendFormat: @"\"%@\"", __intro];
+ [ms appendString: @",plan_num:"];
+ [ms appendFormat: @"%qi", __plan_num];
+ [ms appendString: @",begin_time:"];
+ [ms appendFormat: @"%qi", __begin_time];
+ [ms appendString: @",end_time:"];
+ [ms appendFormat: @"%qi", __end_time];
+ [ms appendString: @",apply_num:"];
+ [ms appendFormat: @"%qi", __apply_num];
+ [ms appendString: @",invite_num:"];
+ [ms appendFormat: @"%qi", __invite_num];
+ [ms appendString: @",accept_num:"];
+ [ms appendFormat: @"%qi", __accept_num];
[ms appendString: @")"];
return [NSString stringWithString: ms];
}
@end
-@implementation TaskBasic
+@implementation TaskExt
-- (id) initWithTid: (int64_t) tid name: (NSString *) name owner: (int64_t) owner intro: (NSString *) intro plan_num: (int64_t) plan_num begin_time: (int64_t) begin_time end_time: (int64_t) end_time apply_num: (int64_t) apply_num invite_num: (int64_t) invite_num accept_num: (int64_t) accept_num
+- (id) initWithUser_apply_list: (NSArray *) user_apply_list user_invite_list: (NSArray *) user_invite_list user_invite_stat: (NSArray *) user_invite_stat user_accept_list: (NSArray *) user_accept_list
{
self = [super init];
- __tid = tid;
- __tid_isset = YES;
- __name = [name retain];
- __name_isset = YES;
- __owner = owner;
- __owner_isset = YES;
- __intro = [intro retain];
- __intro_isset = YES;
- __plan_num = plan_num;
- __plan_num_isset = YES;
- __begin_time = begin_time;
- __begin_time_isset = YES;
- __end_time = end_time;
- __end_time_isset = YES;
- __apply_num = apply_num;
- __apply_num_isset = YES;
- __invite_num = invite_num;
- __invite_num_isset = YES;
- __accept_num = accept_num;
- __accept_num_isset = YES;
+ __user_apply_list = [user_apply_list retain];
+ __user_apply_list_isset = YES;
+ __user_invite_list = [user_invite_list retain];
+ __user_invite_list_isset = YES;
+ __user_invite_stat = [user_invite_stat retain];
+ __user_invite_stat_isset = YES;
+ __user_accept_list = [user_accept_list retain];
+ __user_accept_list_isset = YES;
return self;
}
- (id) initWithCoder: (NSCoder *) decoder
{
self = [super init];
- if ([decoder containsValueForKey: @"tid"])
+ if ([decoder containsValueForKey: @"user_apply_list"])
{
- __tid = [decoder decodeInt64ForKey: @"tid"];
- __tid_isset = YES;
+ __user_apply_list = [[decoder decodeObjectForKey: @"user_apply_list"] retain];
+ __user_apply_list_isset = YES;
}
- if ([decoder containsValueForKey: @"name"])
+ if ([decoder containsValueForKey: @"user_invite_list"])
{
- __name = [[decoder decodeObjectForKey: @"name"] retain];
- __name_isset = YES;
+ __user_invite_list = [[decoder decodeObjectForKey: @"user_invite_list"] retain];
+ __user_invite_list_isset = YES;
}
- if ([decoder containsValueForKey: @"owner"])
+ if ([decoder containsValueForKey: @"user_invite_stat"])
{
- __owner = [decoder decodeInt64ForKey: @"owner"];
- __owner_isset = YES;
+ __user_invite_stat = [[decoder decodeObjectForKey: @"user_invite_stat"] retain];
+ __user_invite_stat_isset = YES;
}
- if ([decoder containsValueForKey: @"intro"])
+ if ([decoder containsValueForKey: @"user_accept_list"])
{
- __intro = [[decoder decodeObjectForKey: @"intro"] retain];
- __intro_isset = YES;
+ __user_accept_list = [[decoder decodeObjectForKey: @"user_accept_list"] retain];
+ __user_accept_list_isset = YES;
}
- if ([decoder containsValueForKey: @"plan_num"])
+ return self;
+}
+
+- (void) encodeWithCoder: (NSCoder *) encoder
+{
+ if (__user_apply_list_isset)
{
- __plan_num = [decoder decodeInt64ForKey: @"plan_num"];
- __plan_num_isset = YES;
- }
- if ([decoder containsValueForKey: @"begin_time"])
- {
- __begin_time = [decoder decodeInt64ForKey: @"begin_time"];
- __begin_time_isset = YES;
- }
- if ([decoder containsValueForKey: @"end_time"])
- {
- __end_time = [decoder decodeInt64ForKey: @"end_time"];
- __end_time_isset = YES;
- }
- if ([decoder containsValueForKey: @"apply_num"])
- {
- __apply_num = [decoder decodeInt64ForKey: @"apply_num"];
- __apply_num_isset = YES;
- }
- if ([decoder containsValueForKey: @"invite_num"])
- {
- __invite_num = [decoder decodeInt64ForKey: @"invite_num"];
- __invite_num_isset = YES;
- }
- if ([decoder containsValueForKey: @"accept_num"])
- {
- __accept_num = [decoder decodeInt64ForKey: @"accept_num"];
- __accept_num_isset = YES;
- }
- return self;
-}
-
-- (void) encodeWithCoder: (NSCoder *) encoder
-{
- if (__tid_isset)
- {
- [encoder encodeInt64: __tid forKey: @"tid"];
- }
- if (__name_isset)
- {
- [encoder encodeObject: __name forKey: @"name"];
- }
- if (__owner_isset)
- {
- [encoder encodeInt64: __owner forKey: @"owner"];
- }
- if (__intro_isset)
- {
- [encoder encodeObject: __intro forKey: @"intro"];
- }
- if (__plan_num_isset)
- {
- [encoder encodeInt64: __plan_num forKey: @"plan_num"];
- }
- if (__begin_time_isset)
- {
- [encoder encodeInt64: __begin_time forKey: @"begin_time"];
- }
- if (__end_time_isset)
- {
- [encoder encodeInt64: __end_time forKey: @"end_time"];
+ [encoder encodeObject: __user_apply_list forKey: @"user_apply_list"];
}
- if (__apply_num_isset)
+ if (__user_invite_list_isset)
{
- [encoder encodeInt64: __apply_num forKey: @"apply_num"];
+ [encoder encodeObject: __user_invite_list forKey: @"user_invite_list"];
}
- if (__invite_num_isset)
+ if (__user_invite_stat_isset)
{
- [encoder encodeInt64: __invite_num forKey: @"invite_num"];
+ [encoder encodeObject: __user_invite_stat forKey: @"user_invite_stat"];
}
- if (__accept_num_isset)
+ if (__user_accept_list_isset)
{
- [encoder encodeInt64: __accept_num forKey: @"accept_num"];
+ [encoder encodeObject: __user_accept_list forKey: @"user_accept_list"];
}
}
- (void) dealloc
{
- [__name release];
- [__intro release];
+ [__user_apply_list release];
+ [__user_invite_list release];
+ [__user_invite_stat release];
+ [__user_accept_list release];
[super dealloc];
}
-- (int64_t) tid {
- return __tid;
-}
-
-- (void) setTid: (int64_t) tid {
- __tid = tid;
- __tid_isset = YES;
-}
-
-- (BOOL) tidIsSet {
- return __tid_isset;
+- (NSArray *) user_apply_list {
+ return [[__user_apply_list retain] autorelease];
}
-- (void) unsetTid {
- __tid_isset = NO;
+- (void) setUser_apply_list: (NSArray *) user_apply_list {
+ [user_apply_list retain];
+ [__user_apply_list release];
+ __user_apply_list = user_apply_list;
+ __user_apply_list_isset = YES;
}
-- (NSString *) name {
- return [[__name retain] autorelease];
+- (BOOL) user_apply_listIsSet {
+ return __user_apply_list_isset;
}
-- (void) setName: (NSString *) name {
- [name retain];
- [__name release];
- __name = name;
- __name_isset = YES;
+- (void) unsetUser_apply_list {
+ [__user_apply_list release];
+ __user_apply_list = nil;
+ __user_apply_list_isset = NO;
}
-- (BOOL) nameIsSet {
- return __name_isset;
+- (NSArray *) user_invite_list {
+ return [[__user_invite_list retain] autorelease];
}
-- (void) unsetName {
- [__name release];
- __name = nil;
- __name_isset = NO;
+- (void) setUser_invite_list: (NSArray *) user_invite_list {
+ [user_invite_list retain];
+ [__user_invite_list release];
+ __user_invite_list = user_invite_list;
+ __user_invite_list_isset = YES;
}
-- (int64_t) owner {
- return __owner;
+- (BOOL) user_invite_listIsSet {
+ return __user_invite_list_isset;
}
-- (void) setOwner: (int64_t) owner {
- __owner = owner;
- __owner_isset = YES;
+- (void) unsetUser_invite_list {
+ [__user_invite_list release];
+ __user_invite_list = nil;
+ __user_invite_list_isset = NO;
}
-- (BOOL) ownerIsSet {
- return __owner_isset;
+- (NSArray *) user_invite_stat {
+ return [[__user_invite_stat retain] autorelease];
}
-- (void) unsetOwner {
- __owner_isset = NO;
+- (void) setUser_invite_stat: (NSArray *) user_invite_stat {
+ [user_invite_stat retain];
+ [__user_invite_stat release];
+ __user_invite_stat = user_invite_stat;
+ __user_invite_stat_isset = YES;
}
-- (NSString *) intro {
- return [[__intro retain] autorelease];
+- (BOOL) user_invite_statIsSet {
+ return __user_invite_stat_isset;
}
-- (void) setIntro: (NSString *) intro {
- [intro retain];
- [__intro release];
- __intro = intro;
- __intro_isset = YES;
+- (void) unsetUser_invite_stat {
+ [__user_invite_stat release];
+ __user_invite_stat = nil;
+ __user_invite_stat_isset = NO;
}
-- (BOOL) introIsSet {
- return __intro_isset;
+- (NSArray *) user_accept_list {
+ return [[__user_accept_list retain] autorelease];
}
-- (void) unsetIntro {
- [__intro release];
- __intro = nil;
- __intro_isset = NO;
+- (void) setUser_accept_list: (NSArray *) user_accept_list {
+ [user_accept_list retain];
+ [__user_accept_list release];
+ __user_accept_list = user_accept_list;
+ __user_accept_list_isset = YES;
}
-- (int64_t) plan_num {
- return __plan_num;
+- (BOOL) user_accept_listIsSet {
+ return __user_accept_list_isset;
}
-- (void) setPlan_num: (int64_t) plan_num {
- __plan_num = plan_num;
- __plan_num_isset = YES;
+- (void) unsetUser_accept_list {
+ [__user_accept_list release];
+ __user_accept_list = nil;
+ __user_accept_list_isset = NO;
}
-- (BOOL) plan_numIsSet {
- return __plan_num_isset;
-}
+- (void) read: (id <TProtocol>) inProtocol
+{
+ NSString * fieldName;
+ int fieldType;
+ int fieldID;
-- (void) unsetPlan_num {
- __plan_num_isset = NO;
+ [inProtocol readStructBeginReturningName: NULL];
+ while (true)
+ {
+ [inProtocol readFieldBeginReturningName: &fieldName type: &fieldType fieldID: &fieldID];
+ if (fieldType == TType_STOP) {
+ break;
+ }
+ switch (fieldID)
+ {
+ case 1:
+ if (fieldType == TType_LIST) {
+ int _size0;
+ [inProtocol readListBeginReturningElementType: NULL size: &_size0];
+ NSMutableArray * fieldValue = [[NSMutableArray alloc] initWithCapacity: _size0];
+ int _i1;
+ for (_i1 = 0; _i1 < _size0; ++_i1)
+ {
+ int64_t _elem2 = [inProtocol readI64];
+ [fieldValue addObject: [NSNumber numberWithLongLong: _elem2]];
+ }
+ [inProtocol readListEnd];
+ [self setUser_apply_list: fieldValue];
+ [fieldValue release];
+ } else {
+ [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
+ }
+ break;
+ case 2:
+ if (fieldType == TType_LIST) {
+ int _size3;
+ [inProtocol readListBeginReturningElementType: NULL size: &_size3];
+ NSMutableArray * fieldValue = [[NSMutableArray alloc] initWithCapacity: _size3];
+ int _i4;
+ for (_i4 = 0; _i4 < _size3; ++_i4)
+ {
+ int64_t _elem5 = [inProtocol readI64];
+ [fieldValue addObject: [NSNumber numberWithLongLong: _elem5]];
+ }
+ [inProtocol readListEnd];
+ [self setUser_invite_list: fieldValue];
+ [fieldValue release];
+ } else {
+ [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
+ }
+ break;
+ case 3:
+ if (fieldType == TType_LIST) {
+ int _size6;
+ [inProtocol readListBeginReturningElementType: NULL size: &_size6];
+ NSMutableArray * fieldValue = [[NSMutableArray alloc] initWithCapacity: _size6];
+ int _i7;
+ for (_i7 = 0; _i7 < _size6; ++_i7)
+ {
+ int _elem8 = [inProtocol readI32];
+ [fieldValue addObject: [NSNumber numberWithInt: _elem8]];
+ }
+ [inProtocol readListEnd];
+ [self setUser_invite_stat: fieldValue];
+ [fieldValue release];
+ } else {
+ [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
+ }
+ break;
+ case 4:
+ if (fieldType == TType_LIST) {
+ int _size9;
+ [inProtocol readListBeginReturningElementType: NULL size: &_size9];
+ NSMutableArray * fieldValue = [[NSMutableArray alloc] initWithCapacity: _size9];
+ int _i10;
+ for (_i10 = 0; _i10 < _size9; ++_i10)
+ {
+ int64_t _elem11 = [inProtocol readI64];
+ [fieldValue addObject: [NSNumber numberWithLongLong: _elem11]];
+ }
+ [inProtocol readListEnd];
+ [self setUser_accept_list: fieldValue];
+ [fieldValue release];
+ } else {
+ [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
+ }
+ break;
+ default:
+ [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
+ break;
+ }
+ [inProtocol readFieldEnd];
+ }
+ [inProtocol readStructEnd];
+}
+
+- (void) write: (id <TProtocol>) outProtocol {
+ [outProtocol writeStructBeginWithName: @"TaskExt"];
+ if (__user_apply_list_isset) {
+ if (__user_apply_list != nil) {
+ [outProtocol writeFieldBeginWithName: @"user_apply_list" type: TType_LIST fieldID: 1];
+ {
+ [outProtocol writeListBeginWithElementType: TType_I64 size: [__user_apply_list count]];
+ int i13;
+ for (i13 = 0; i13 < [__user_apply_list count]; i13++)
+ {
+ [outProtocol writeI64: [[__user_apply_list objectAtIndex: i13] longLongValue]];
+ }
+ [outProtocol writeListEnd];
+ }
+ [outProtocol writeFieldEnd];
+ }
+ }
+ if (__user_invite_list_isset) {
+ if (__user_invite_list != nil) {
+ [outProtocol writeFieldBeginWithName: @"user_invite_list" type: TType_LIST fieldID: 2];
+ {
+ [outProtocol writeListBeginWithElementType: TType_I64 size: [__user_invite_list count]];
+ int i15;
+ for (i15 = 0; i15 < [__user_invite_list count]; i15++)
+ {
+ [outProtocol writeI64: [[__user_invite_list objectAtIndex: i15] longLongValue]];
+ }
+ [outProtocol writeListEnd];
+ }
+ [outProtocol writeFieldEnd];
+ }
+ }
+ if (__user_invite_stat_isset) {
+ if (__user_invite_stat != nil) {
+ [outProtocol writeFieldBeginWithName: @"user_invite_stat" type: TType_LIST fieldID: 3];
+ {
+ [outProtocol writeListBeginWithElementType: TType_I32 size: [__user_invite_stat count]];
+ int i17;
+ for (i17 = 0; i17 < [__user_invite_stat count]; i17++)
+ {
+ [outProtocol writeI32: [[__user_invite_stat objectAtIndex: i17] intValue]];
+ }
+ [outProtocol writeListEnd];
+ }
+ [outProtocol writeFieldEnd];
+ }
+ }
+ if (__user_accept_list_isset) {
+ if (__user_accept_list != nil) {
+ [outProtocol writeFieldBeginWithName: @"user_accept_list" type: TType_LIST fieldID: 4];
+ {
+ [outProtocol writeListBeginWithElementType: TType_I64 size: [__user_accept_list count]];
+ int i19;
+ for (i19 = 0; i19 < [__user_accept_list count]; i19++)
+ {
+ [outProtocol writeI64: [[__user_accept_list objectAtIndex: i19] longLongValue]];
+ }
+ [outProtocol writeListEnd];
+ }
+ [outProtocol writeFieldEnd];
+ }
+ }
+ [outProtocol writeFieldStop];
+ [outProtocol writeStructEnd];
+}
+
+- (NSString *) description {
+ NSMutableString * ms = [NSMutableString stringWithString: @"TaskExt("];
+ [ms appendString: @"user_apply_list:"];
+ [ms appendFormat: @"%@", __user_apply_list];
+ [ms appendString: @",user_invite_list:"];
+ [ms appendFormat: @"%@", __user_invite_list];
+ [ms appendString: @",user_invite_stat:"];
+ [ms appendFormat: @"%@", __user_invite_stat];
+ [ms appendString: @",user_accept_list:"];
+ [ms appendFormat: @"%@", __user_accept_list];
+ [ms appendString: @")"];
+ return [NSString stringWithString: ms];
+}
+
+@end
+
+@implementation TaskInfo
+
+- (id) initWithBasic: (TaskBasic *) basic ext: (TaskExt *) ext
+{
+ self = [super init];
+ __basic = [basic retain];
+ __basic_isset = YES;
+ __ext = [ext retain];
+ __ext_isset = YES;
+ return self;
+}
+
+- (id) initWithCoder: (NSCoder *) decoder
+{
+ self = [super init];
+ if ([decoder containsValueForKey: @"basic"])
+ {
+ __basic = [[decoder decodeObjectForKey: @"basic"] retain];
+ __basic_isset = YES;
+ }
+ if ([decoder containsValueForKey: @"ext"])
+ {
+ __ext = [[decoder decodeObjectForKey: @"ext"] retain];
+ __ext_isset = YES;
+ }
+ return self;
+}
+
+- (void) encodeWithCoder: (NSCoder *) encoder
+{
+ if (__basic_isset)
+ {
+ [encoder encodeObject: __basic forKey: @"basic"];
+ }
+ if (__ext_isset)
+ {
+ [encoder encodeObject: __ext forKey: @"ext"];
+ }
+}
+
+- (void) dealloc
+{
+ [__basic release];
+ [__ext release];
+ [super dealloc];
+}
+
+- (TaskBasic *) basic {
+ return [[__basic retain] autorelease];
+}
+
+- (void) setBasic: (TaskBasic *) basic {
+ [basic retain];
+ [__basic release];
+ __basic = basic;
+ __basic_isset = YES;
+}
+
+- (BOOL) basicIsSet {
+ return __basic_isset;
+}
+
+- (void) unsetBasic {
+ [__basic release];
+ __basic = nil;
+ __basic_isset = NO;
+}
+
+- (TaskExt *) ext {
+ return [[__ext retain] autorelease];
+}
+
+- (void) setExt: (TaskExt *) ext {
+ [ext retain];
+ [__ext release];
+ __ext = ext;
+ __ext_isset = YES;
+}
+
+- (BOOL) extIsSet {
+ return __ext_isset;
+}
+
+- (void) unsetExt {
+ [__ext release];
+ __ext = nil;
+ __ext_isset = NO;
+}
+
+- (void) read: (id <TProtocol>) inProtocol
+{
+ NSString * fieldName;
+ int fieldType;
+ int fieldID;
+
+ [inProtocol readStructBeginReturningName: NULL];
+ while (true)
+ {
+ [inProtocol readFieldBeginReturningName: &fieldName type: &fieldType fieldID: &fieldID];
+ if (fieldType == TType_STOP) {
+ break;
+ }
+ switch (fieldID)
+ {
+ case 1:
+ if (fieldType == TType_STRUCT) {
+ TaskBasic *fieldValue = [[TaskBasic alloc] init];
+ [fieldValue read: inProtocol];
+ [self setBasic: fieldValue];
+ [fieldValue release];
+ } else {
+ [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
+ }
+ break;
+ case 2:
+ if (fieldType == TType_STRUCT) {
+ TaskExt *fieldValue = [[TaskExt alloc] init];
+ [fieldValue read: inProtocol];
+ [self setExt: fieldValue];
+ [fieldValue release];
+ } else {
+ [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
+ }
+ break;
+ default:
+ [TProtocolUtil skipType: fieldType onProtocol: inProtocol];
+ break;
+ }
+ [inProtocol readFieldEnd];
+ }
+ [inProtocol readStructEnd];
+}
+
+- (void) write: (id <TProtocol>) outProtocol {
+ [outProtocol writeStructBeginWithName: @"TaskInfo"];
+ if (__basic_isset) {
+ if (__basic != nil) {
+ [outProtocol writeFieldBeginWithName: @"basic" type: TType_STRUCT fieldID: 1];
+ [__basic write: outProtocol];
+ [outProtocol writeFieldEnd];
+ }
+ }
+ if (__ext_isset) {
+ if (__ext != nil) {
+ [outProtocol writeFieldBeginWithName: @"ext" type: TType_STRUCT fieldID: 2];
+ [__ext write: outProtocol];
+ [outProtocol writeFieldEnd];
+ }
+ }
+ [outProtocol writeFieldStop];
+ [outProtocol writeStructEnd];
+}
+
+- (NSString *) description {
+ NSMutableString * ms = [NSMutableString stringWithString: @"TaskInfo("];
+ [ms appendString: @"basic:"];
+ [ms appendFormat: @"%@", __basic];
+ [ms appendString: @",ext:"];
+ [ms appendFormat: @"%@", __ext];
+ [ms appendString: @")"];
+ return [NSString stringWithString: ms];
+}
+
+@end
+
+@implementation UserBasic
+
+- (id) initWithName: (NSString *) name gender: (int) gender org: (NSString *) org job: (NSString *) job avator: (NSString *) avator
+{
+ self = [super init];
+ __name = [name retain];
+ __name_isset = YES;
+ __gender = gender;
+ __gender_isset = YES;
+ __org = [org retain];
+ __org_isset = YES;
+ __job = [job retain];
+ __job_isset = YES;
+ __avator = [avator retain];
+ __avator_isset = YES;
+ return self;
+}
+
+- (id) initWithCoder: (NSCoder *) decoder
+{
+ self = [super init];
+ if ([decoder containsValueForKey: @"name"])
+ {
+ __name = [[decoder decodeObjectForKey: @"name"] retain];
+ __name_isset = YES;
+ }
+ if ([decoder containsValueForKey: @"gender"])
+ {
+ __gender = [decoder decodeIntForKey: @"gender"];
+ __gender_isset = YES;
+ }
+ if ([decoder containsValueForKey: @"org"])
+ {
+ __org = [[decoder decodeObjectForKey: @"org"] retain];
+ __org_isset = YES;
+ }
+ if ([decoder containsValueForKey: @"job"])
+ {
+ __job = [[decoder decodeObjectForKey: @"job"] retain];
+ __job_isset = YES;
+ }
+ if ([decoder containsValueForKey: @"avator"])
+ {
+ __avator = [[decoder decodeObjectForKey: @"avator"] retain];
+ __avator_isset = YES;
+ }
+ return self;
+}
+
+- (void) encodeWithCoder: (NSCoder *) encoder
+{
+ if (__name_isset)
+ {
+ [encoder encodeObject: __name forKey: @"name"];
+ }
+ if (__gender_isset)
+ {
+ [encoder encodeInt: __gender forKey: @"gender"];
+ }
+ if (__org_isset)
+ {
+ [encoder encodeObject: __org forKey: @"org"];
+ }
+ if (__job_isset)
+ {
+ [encoder encodeObject: __job forKey: @"job"];
+ }
+ if (__avator_isset)
+ {
+ [encoder encodeObject: __avator forKey: @"avator"];
+ }
+}
+
+- (void) dealloc
+{
+ [__name release];
+ [__org release];
+ [__job release];
+ [__avator release];
+ [super dealloc];
}
-- (int64_t) begin_time {
- return __begin_time;
+- (NSString *) name {
+ return [[__name retain] autorelease];
}
-- (void) setBegin_time: (int64_t) begin_time {
- __begin_time = begin_time;
- __begin_time_isset = YES;
+- (void) setName: (NSString *) name {
+ [name retain];
+ [__name release];
+ __name = name;
+ __name_isset = YES;
}
-- (BOOL) begin_timeIsSet {
- return __begin_time_isset;
+- (BOOL) nameIsSet {
+ return __name_isset;
}
-- (void) unsetBegin_time {
- __begin_time_isset = NO;
+- (void) unsetName {
+ [__name release];
+ __name = nil;
+ __name_isset = NO;
}
-- (int64_t) end_time {
- return __end_time;
+- (int) gender {
+ return __gender;
}
-- (void) setEnd_time: (int64_t) end_time {
- __end_time = end_time;
- __end_time_isset = YES;
+- (void) setGender: (int) gender {
+ __gender = gender;
+ __gender_isset = YES;
}
-- (BOOL) end_timeIsSet {
- return __end_time_isset;
+- (BOOL) genderIsSet {
+ return __gender_isset;
}
-- (void) unsetEnd_time {
- __end_time_isset = NO;
+- (void) unsetGender {
+ __gender_isset = NO;
}
-- (int64_t) apply_num {
- return __apply_num;
+- (NSString *) org {
+ return [[__org retain] autorelease];
}
-- (void) setApply_num: (int64_t) apply_num {
- __apply_num = apply_num;
- __apply_num_isset = YES;
+- (void) setOrg: (NSString *) org {
+ [org retain];
+ [__org release];
+ __org = org;
+ __org_isset = YES;
}
-- (BOOL) apply_numIsSet {
- return __apply_num_isset;
+- (BOOL) orgIsSet {
+ return __org_isset;
}
-- (void) unsetApply_num {
- __apply_num_isset = NO;
+- (void) unsetOrg {
+ [__org release];
+ __org = nil;
+ __org_isset = NO;
}
-- (int64_t) invite_num {
- return __invite_num;
+- (NSString *) job {
+ return [[__job retain] autorelease];
}
-- (void) setInvite_num: (int64_t) invite_num {
- __invite_num = invite_num;
- __invite_num_isset = YES;
+- (void) setJob: (NSString *) job {
+ [job retain];
+ [__job release];
+ __job = job;
+ __job_isset = YES;
}
-- (BOOL) invite_numIsSet {
- return __invite_num_isset;
+- (BOOL) jobIsSet {
+ return __job_isset;
}
-- (void) unsetInvite_num {
- __invite_num_isset = NO;
+- (void) unsetJob {
+ [__job release];
+ __job = nil;
+ __job_isset = NO;
}
-- (int64_t) accept_num {
- return __accept_num;
+- (NSString *) avator {
+ return [[__avator retain] autorelease];
}
-- (void) setAccept_num: (int64_t) accept_num {
- __accept_num = accept_num;
- __accept_num_isset = YES;
+- (void) setAvator: (NSString *) avator {
+ [avator retain];
+ [__avator release];
+ __avator = avator;
+ __avator_isset = YES;
}
-- (BOOL) accept_numIsSet {
- return __accept_num_isset;
+- (BOOL) avatorIsSet {
+ return __avator_isset;
}
-- (void) unsetAccept_num {