AnnouncementHelper class
Methods
-
addAnnouncement({required Announcement data, GeneralCallback<Response>? callback, String? languageCode})
→ Future<Response?>
-
-
addApplication({required Announcement data, GeneralCallback<Response>? callback, String? languageCode})
→ Future<Response?>
-
-
addBlackList({required String username, GeneralCallback<Response>? callback})
→ Future<Response?>
-
-
appleLogin({required String idToken, GeneralCallback<AnnouncementLoginData>? callback})
→ Future<AnnouncementLoginData?>
-
-
approveApplication({required String? applicationId, String? reviewDescription, GeneralCallback<Response>? callback})
→ Future<Response?>
-
-
clearSetting()
→ void
-
-
deleteAnnouncement({required Announcement data, GeneralCallback<Response>? callback})
→ Future<Response?>
-
-
getAllAnnouncements({GeneralCallback<List<Announcement>?>? callback})
→ Future<List<Announcement>?>
-
-
getAnnouncement({required int id, String? locale, GeneralCallback<Announcement>? callback})
→ Future<Announcement?>
-
-
getAnnouncements({GeneralCallback<List<Announcement>>? callback, String? locale, List<String>? tags, bool sortAndRandom = true})
→ Future<List<Announcement>?>
-
-
getApplication({required String id, String? locale, GeneralCallback<Announcement>? callback})
→ Future<Announcement?>
-
-
getApplications({String? locale, GeneralCallback<List<Announcement>?>? callback})
→ Future<List<Announcement>?>
-
-
getBlackList({required GeneralCallback<List<String>> callback})
→ Future<void>
-
-
googleLogin({required String? idToken, GeneralCallback<AnnouncementLoginData>? callback})
→ Future<AnnouncementLoginData?>
-
-
handleCrudError(DioException dioException, GeneralCallback callback)
→ void
-
-
login({required String? username, required String? password, GeneralCallback<AnnouncementLoginData>? callback})
→ Future<AnnouncementLoginData?>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
rejectApplication({required String? applicationId, String? reviewDescription, GeneralCallback<Response>? callback})
→ Future<Response?>
-
-
reLogin(GeneralCallback<GeneralResponse> callback)
→ Future<bool>
-
-
removeApplication({required String applicationId, GeneralCallback<Response>? callback})
→ Future<Response?>
-
-
removeFromBlackList({required String username, GeneralCallback<Response>? callback})
→ Future<Response?>
-
-
setAuthorization(String? key)
→ void
-
-
setLocale(Locale locale)
→ void
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateAnnouncement({required Announcement data, GeneralCallback<Response>? callback})
→ Future<Response?>
-
-
updateApplication({required Announcement data, GeneralCallback<Response>? callback})
→ Future<Response?>
-