Exemplo n.º 1
0
 public ApplicationModel(Application app):base(app)
 {
     if (app != null)
     {
         Name = app.Name;
         HomeAddress = app.HomeAddress;
         Description = app.Description;
     }
 }
Exemplo n.º 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();
     }
 }
Exemplo n.º 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();
     }
 }
Exemplo n.º 4
0
 public void UpdateApplication(int userId, string token, YoYoStudio.Model.Core.Application application)
 {
     client.UpdateApplication(application_Id, userId, token, application);
 }
Exemplo n.º 5
0
 public YoYoStudio.Model.Core.Application AddApplication(int userId, string token, YoYoStudio.Model.Core.Application application)
 {
     return(client.AddApplication(application_Id, userId, token, application));
 }