How to Use DTO's in Objective C -
I am using data transfer objects in the food, such as
public class accountDEM {Private string username; Private string userAuthToken; Personal Ind users_id; Public Zero SatusName (string _username) {this.userName = _userName; } Public string getuserName () {return user name; } ...} How can I use the same in Objective-C? Probably "the purpose of the objective C" will serve the purpose I think. But some people can tell it in detail, how to use the Objective-C property to write the DTO and how to use them effectively and to keep memory safe (to avoid memory leaks).
If possible, please code above OBJ C.
@interface accountDEM @property (nonatomic, retain) NSString * Username; @property (nontomic, write) NSString * userAuthToken; @property (nanatomic) int user_id; @end @implementaion @ synthesis user name; @ Userstom; Synthesize; @ Synthesis user_ID; You can read for properties @end
Comments
Post a Comment