-
- All Implemented Interfaces:
-
android.os.Parcelable,java.io.Serializable,java.lang.Cloneable
public class MenigaTerms implements Parcelable, Serializable, Cloneable
Copyright 2017 Meniga Iceland Inc.
-
-
Field Summary
Fields Modifier and Type Field Description protected DateTimecreationDateprotected Stringcontentprotected Stringcultureprotected BooleanacceptanceRequiredprotected TermsTypetermsAndConditionsTypeprotected TermsStatetermsAndConditionsStateprotected DateTimemodifiedAtpublic final static Parcelable.Creator<MenigaTerms>CREATOR
-
Constructor Summary
Constructors Constructor Description MenigaTerms()
-
Method Summary
Modifier and Type Method Description booleanequals(Object o)inthashCode()intdescribeContents()voidwriteToParcel(Parcel dest, int flags)static voidsetOperator(MenigaTermsOperations operator)Sets the api operator for doing api calls static Result<List<MenigaTerms>>fetch()Returns the public system settings. static Result<MenigaTerms>fetch(long typeId)static Result<List<MenigaTermType>>fetchTypes()static Result<Void>accept(long typeId)static Result<Void>decline(long typeId)DateTimegetCreationDate()StringgetContent()StringgetCulture()BooleangetAcceptanceRequired()TermsTypegetTermsAndConditionsType()TermsStategetTermsAndConditionsState()DateTimegetModifiedAt()-
-
Method Detail
-
hashCode
int hashCode()
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
setOperator
static void setOperator(MenigaTermsOperations operator)
Sets the api operator for doing api calls
- Parameters:
operator- An object that implements the MenigaTermsOperations interface for carrying out api operations on this class.
-
fetch
static Result<List<MenigaTerms>> fetch()
Returns the public system settings.
-
fetch
static Result<MenigaTerms> fetch(long typeId)
-
fetchTypes
static Result<List<MenigaTermType>> fetchTypes()
-
getCreationDate
DateTime getCreationDate()
-
getContent
String getContent()
-
getCulture
String getCulture()
-
getAcceptanceRequired
Boolean getAcceptanceRequired()
-
getTermsAndConditionsType
TermsType getTermsAndConditionsType()
-
getTermsAndConditionsState
TermsState getTermsAndConditionsState()
-
getModifiedAt
DateTime getModifiedAt()
-
-
-
-