public static SpacesSingleton Get(this SpacesClient that) { if (spacesSingletons == null) { spacesSingletons = new SpacesSingleton(that); } return(spacesSingletons); }
public Clients(HttpClient httpClient) { HttpClient = httpClient; UsersClient = new UsersClient(HttpClient); SpacesClient = new SpacesClient(HttpClient); DevicesClient = new DevicesClient(HttpClient); SensorsClient = new SensorsClient(HttpClient); ResourcesClient = new ResourcesClient(HttpClient); EndpointsClient = new EndpointsClient(HttpClient); OntologiesClient = new OntologiesClient(HttpClient); PropertyKeysClient = new PropertyKeysClient(HttpClient); TypesClient = new TypesClient(HttpClient); UserDefinedFunctionsClient = new UserDefinedFunctionsClient(HttpClient); MatchersClient = new MatchersClient(HttpClient); RoleAssignmentsClient = new RoleAssignmentsClient(HttpClient); }