示例#1
0
 public CityLogic(CityModel model, AdaptersExtender adaptersExtender, InteractionLogic interaction)
 {
     _model            = model;
     _adaptersExtender = adaptersExtender;
     _interaction      = interaction;
     _persons          = new UpdatableCollectionLoadDecorator <PersonLogic, IPersonInfo>(RetriveAllPersons, ComparePersonsInfo, p => p.IsOnline, CreatePersonsLogic);
     _driverResponses  = new SimpleCollectionLoadDecorator <IDriverResponse>(RetriveDriverResponses);
     _driverResponses.RequestFailed += DriverResponses_RequestFailed;
     model.AuthenticateDelegate      = Authenticate;
     model.EnumeratePersonsDelegate  = EnumeratePersons;
 }
示例#2
0
 public MapLogic(MapModel model, AdaptersExtender adaptersExtender, InteractionLogic interaction)
 {
     _model            = model;
     _adaptersExtender = adaptersExtender;
     _interaction      = interaction;
 }
示例#3
0
 public SettingsLogic(SettingsModel model, AdaptersExtender adaptersExtender, InteractionLogic interaction)
 {
     _model            = model;
     _adaptersExtender = adaptersExtender;
     _interaction      = interaction;
 }