Esempio n. 1
0
 public GiftGroupModel(GiftGroup giftGroup):base(giftGroup)
 {
     if (giftGroup != null)
     {
         Name = giftGroup.Name;
         Description = giftGroup.Description;
     }
 }
Esempio n. 2
0
 public GiftGroup GetGiftGroup(int appid, int userId, string token, int id)
 {
     try
     {
         CheckToken(appid, userId, token);
         GiftGroup giftGroup = new GiftGroup { Id = id };
         modelAccesser.Get(giftGroup);
         return giftGroup.Loaded ? giftGroup : null;
     }
     catch (Exception)
     {
         throw new DatabaseException();
     }
 }
Esempio n. 3
0
 public GiftGroup AddGiftGroup(int appid, int userId, string token, GiftGroup giftGroup)
 {
     try
     {
         CheckToken(appid, userId, token);
         CheckCommand(appid, BuiltIns._9258ChatApplication.Id, userId, BuiltIns.DefineGiftGroupCommand.Id, BuiltIns.AllRole.Id);
         modelAccesser.Add(giftGroup);
         return giftGroup;
     }
     catch (Exception)
     {
         throw new DatabaseException();
     }
 }
 public GiftGroupViewModel(GiftGroup giftGroup)
     : base(giftGroup)
 {
     name.SetValue(giftGroup.Name);
 }
Esempio n. 5
0
 public YoYoStudio.Model.Chat.GiftGroup AddGiftGroup(int userId, string token, YoYoStudio.Model.Chat.GiftGroup giftGroup)
 {
     return(client.AddGiftGroup(application_Id, userId, token, giftGroup));
 }
Esempio n. 6
0
 public void UpdateGiftGroup(int userId, string token, YoYoStudio.Model.Chat.GiftGroup giftGroup)
 {
     client.UpdateGiftGroup(application_Id, userId, token, giftGroup);
 }