NetworkHandler class

Constructors

NetworkHandler()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

logout() Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerDevice(String body, String encryptedHash) Future<String>
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

appContext BuildContext?
getter/setter pair
wsHost String
getter/setter pair

Static Methods

confirmEmailOrMobile({String email = "", String mobileno = "", String otp = "", String token = ""}) Future<Response>
createAccount({String name = "", String email = "", String phone = "", String password = "", String? captcha, String? gtoken, String? fbtoken, String? appletoken}) → dynamic
fetchAvailability() Future<AvailabilityModel>
fetchConfig() → dynamic
forgotPassword({String email = "", String mobileno = ""}) Future<Response>
getChapters({required String seriesid, required String seasonnum, int pagesize = 15, int page = 1}) Future<ChaptersModel>
getContent(String listtype, {String genre = "", String language = "", String objecttype = "", String subcategory = "", String tags = "", String category = "", String displaylanguage = "", String partnerid = "", int pagesize = 10, int page = 0}) Future<ContentModel>
getContentDetail(String objectid) Future<Datum>
getCountry() Future<UserCountry>
getInstance() → Dio
getLoginState() Future<bool>
getModules({required String seriesid}) Future<ModulesModel>
getPackageDetail(Datum content) Future<PackageModel>
getPlans() Future<PlansModel>
getPlayList(Datum contentToPlay) Future<List<Datum>>
getPriceClass(String availabilityId) → dynamic
getPurchaseList() → dynamic
getRelatedContent({required String contentid, String displaylanguage = "eng", int page = 1}) Future<ContentModel>
getSubcription() Future<String>
getSubscriber() Future<String>
hasTokenExpired(String token) bool
initialize() → dynamic
initializePayment(dynamic params, {String gateway = "stripe"}) Future
login({String email = "", String mobileno = "", String password = "", String gToken = "", String fbToken = "", String otp = "", String appleToken = ""}) Future<Response>
loginWithOtp({String mobileno = "", String otp = ""}) → dynamic
performSearch({String query = "", String displaylanguage = "eng", dynamic page = 1}) → dynamic
refreshDeviceToken({bool force = false}) Future<String>
refreshSessionToken(String refreshToken) Future<String>
resendEmailOrPhoneVerification({required String email, required String phone}) → dynamic
resetPassword({String email = "", String mobileNo = "", required String otp, required String password}) Future<Response>
sendOtpToEmail(String email) → dynamic
sendOtpToMobile(String mobileNo) → dynamic
updateProfile({required String subscribername, String? dob, required String profilePin, String gender = "", String picture = ""}) → dynamic
uploadProfilePicture(FormData formdata) → dynamic
verifyUser({required String email, required String phone}) Future

Constants

get → const String
post → const String