コード例 #1
0
 public Service(
     HttpClientAuthorizationManager httpClientManager,
     HttpHelper httpHelper,
     string postFix)
 {
     _httpClientManager = httpClientManager;
     _httpHelper        = httpHelper;
     _client            = httpClientManager.HttpClient;
     _stringBuilder     = new StringBuilder(100);
     _postFix           = postFix;
 }
コード例 #2
0
        public void LoadServices(MainActivity activity)
        {
            var httpClientManager = new HttpClientAuthorizationManager();

            activity.AuthorizationManager = httpClientManager;
            var httpHelper = new HttpHelper();

            activity.PersistenceProvider = new PersistenceProvider(activity);
            activity.RoleManager         = new RoleManager(activity.PersistenceProvider);
            activity.AttributeService    = new AttributeService(httpClientManager, httpHelper, "/api/attribute");
            activity.AuthService         = new AuthService(httpClientManager, httpHelper, "/api/auth");
            activity.CityService         = new CityService(httpClientManager, httpHelper, "/api/city");
            activity.CounterpartyService = new CounterpartyService(httpClientManager, httpHelper, "/api/counterparty");
            activity.InvoiceService      = new InvoiceService(httpClientManager, httpHelper, "/api/invoice");
            activity.HLocationService    = new LocationService(httpClientManager, httpHelper, "/api/location");
            activity.NoteService         = new NoteService(httpClientManager, httpHelper, "/api/note");
            activity.ProductService      = new ProductService(httpClientManager, httpHelper, "/api/product");
            activity.RoleService         = new RoleService(httpClientManager, httpHelper, "/api/role");
            activity.HUserService        = new UserService(httpClientManager, httpHelper, "/api/user");
        }
コード例 #3
0
 public CounterpartyService(HttpClientAuthorizationManager httpClientManager, HttpHelper httpHelper, string postFix) : base(httpClientManager, httpHelper, postFix)
 {
 }
コード例 #4
0
 public ProductService(HttpClientAuthorizationManager httpClientManager, HttpHelper httpHelper, string postFix) : base(httpClientManager, httpHelper, postFix)
 {
 }