コード例 #1
0
        public static async void Commit()
        {
            if (NeedsCommit)
            {
                int          id  = Apparatus.Id;
                ApparatusApi api = new ApparatusApi(OnDuty.Core.Manager.SettingsManager.ApiRootPath);

                await api.UpdateStatus(id, NewApparatusStatus);
            }

            Clear();
        }
コード例 #2
0
 public VehiclesListController(IntPtr handle) : base(handle)
 {
     API = new ApparatusAPI(OnDuty.Core.Manager.SettingsManager.ApiRootPath);
     EventBus.Attach("api.update.vehicle.status.before", ShowUpdateSpinner);
     EventBus.Attach("api.update.vehicle.status.after", forceRefresh);
 }
コード例 #3
0
 public UIVehiclesList(IntPtr handle) : base(handle)
 {
     API           = new ApparatusAPI("http://localhost/app_dev.php/api");
     VehicleLoader = new UIActivityIndicatorView(UIActivityIndicatorViewStyle.WhiteLarge);
     RefreshVehiclesList();
 }