Esempio n. 1
0
 public static UserModel ParseUser(User user)
 {
     return new UserModel(
         user.Id,
         user.Username,
         user.UserStatus,
         user.ImageUrl);
 }
 public static new UserFullModel ParseUser(User user)
 {
     return new UserFullModel(
         user.Id,
         user.Username,
         user.UserStatus,
         user.ImageUrl,
         user.Chats.Select(c => ChatModel.ParseChat(c)).ToList());
 }