UServices constructor
Implementation
UServices({
required this.baseUrl,
required this.apiKey,
required this.token,
}) {
final UHttpClient httpClient = UHttpClient(baseUrl: baseUrl);
dashboard = DashboardService(httpClient: httpClient, apiKey: apiKey, token: apiKey);
auth = AuthService(httpClient: httpClient, apiKey: apiKey, token: token);
category = CategoryService(httpClient: httpClient, apiKey: apiKey, token: token);
exam = ExamService(httpClient: httpClient, apiKey: apiKey, token: token);
user = UserService(httpClient: httpClient, apiKey: apiKey, token: token);
product = ProductService(httpClient: httpClient, apiKey: apiKey, token: token);
content = ContentService(httpClient: httpClient, apiKey: apiKey, token: token);
comment = CommentService(httpClient: httpClient, apiKey: apiKey, token: token);
follow = FollowService(httpClient: httpClient, apiKey: apiKey, token: token);
}