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

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -