AnnouncementHelper class

Constructors

AnnouncementHelper()

Properties

appleBundleId String?
Apple bundle identifier for apple sign in
getter/setter pair
code String?
getter/setter pair
dio Dio
getter/setter pair
fcmToken String?
firebase cloud message token
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
loginType AnnouncementLoginType
getter/setter pair
organization String?
organization tag name
getter/setter pair
password String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
username String?
getter/setter pair

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?>

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

host String
getter/setter pair
instance AnnouncementHelper
no setter
tag String
getter/setter pair

Static Methods

reInstance({String? host, String? tag}) → void

Constants

notFoundData → const int
notPermission → const int
tokenExpire → const int
useDataError → const int