-
- 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 DateTime
creationDate
protected String
content
protected String
culture
protected Boolean
acceptanceRequired
protected TermsType
termsAndConditionsType
protected TermsState
termsAndConditionsState
protected DateTime
modifiedAt
public final static Parcelable.Creator<MenigaTerms>
CREATOR
-
Constructor Summary
Constructors Constructor Description MenigaTerms()
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
int
describeContents()
void
writeToParcel(Parcel dest, int flags)
static void
setOperator(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)
DateTime
getCreationDate()
String
getContent()
String
getCulture()
Boolean
getAcceptanceRequired()
TermsType
getTermsAndConditionsType()
TermsState
getTermsAndConditionsState()
DateTime
getModifiedAt()
-
-
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()
-
-
-
-