Пример #1
0
 public static UsersConversationDataModel Create(string userId, ConversationDataModel chat, string deviceId = null)
 {
     return(new UsersConversationDataModel
     {
         Conversation = chat,
         UserID = userId,
         DeviceId = deviceId
     });
 }
 public static ChatRoleDataModel Create(ConversationDataModel chat, string userId, ChatRole role)
 {
     return(new ChatRoleDataModel
     {
         Chat = chat,
         UserId = userId,
         RoleId = role
     });
 }
 public static ConversationsBansDataModel Create(AppUser banned, ConversationDataModel where)
 {
     return(new ConversationsBansDataModel {
         BannedUser = banned, Conversation = where
     });
 }