Search
Project
General
Profile
Sign in
Register
Home
Projects
Search
:
Sunnex Mobile Client
All Projects
Sunnex Mobile Client
Overview
Activity
Roadmap
Issues
Spent time
Gantt
Calendar
News
Documents
Wiki
Files
Download (670 Bytes)
Task #28
» repository_factory.dart
Milad Khnefes, 01/29/2026 02:07 PM
import
'../constants/urls.dart'
;
import
'../config/auth_urls.dart'
;
import
'../config/profile_urls.dart'
;
import
'../../repository/auth_repository.dart'
;
import
'../../repository/profile_repository.dart'
;
class
RepositoryFactory
{
static
AuthRepository
createAuthRepository
()
{
final
urls
=
AuthUrls
(
login:
URLs
.
login
,
refreshToken:
URLs
.
refreshToken
,
verifyToken:
URLs
.
verifyToken
,
);
return
AuthRepository
(
urls:
urls
);
}
static
ProfileRepository
createProfileRepository
()
{
final
urls
=
ProfileUrls
(
profile:
URLs
.
profile
,
sendLanguage:
URLs
.
sendLanguage
,
);
return
ProfileRepository
(
urls:
urls
);
}
}
« Previous
1
2
3
…
12
Next »
(1-1/12)
Loading...