public ApplicationModel(Application app):base(app)
 {
     if (app != null)
     {
         Name = app.Name;
         HomeAddress = app.HomeAddress;
         Description = app.Description;
     }
 }
Beispiel #2
0
 public Application GetApplication(int appid, int userId, string token, int id)
 {
     try
     {
         CheckToken(appid, userId, token);
         Application application = new Application { Id = id };
         modelAccesser.Get<Application>(application);
         return application.Loaded ? application : null;
     }
     catch (Exception)
     {
         throw new DatabaseException();
     }
 }
Beispiel #3
0
 public void UpdateApplication(int appid, int userId, string token, Application application)
 {
     try
     {
         CheckToken(appid, userId, token);
         CheckCommand(appid, BuiltIns.AllApplication.Id, userId, BuiltIns.DefineApplicationCommand.Id, BuiltIns.AllRole.Id);
         modelAccesser.Update<Application>(application);
     }
     catch (Exception)
     {
         throw new DatabaseException();
     }
 }
 public void UpdateApplication(int userId, string token, YoYoStudio.Model.Core.Application application)
 {
     client.UpdateApplication(application_Id, userId, token, application);
 }
 public YoYoStudio.Model.Core.Application AddApplication(int userId, string token, YoYoStudio.Model.Core.Application application)
 {
     return(client.AddApplication(application_Id, userId, token, application));
 }