-
- All Implemented Interfaces:
-
android.os.Parcelable,java.io.Serializable,java.lang.Cloneable
public class MenigaUserEvent implements Serializable, Parcelable, Cloneable
Copyright 2017 Meniga Iceland Inc.
-
-
Field Summary
Fields Modifier and Type Field Description protected List<UserEventSubscription>subscriptionsprotected List<UserEventSetting>settingsprotected List<MenigaUserEvent>childrenpublic final static Parcelable.Creator<MenigaUserEvent>CREATOR
-
Method Summary
Modifier and Type Method Description static voidsetOperator(MenigaUserEventsOperations operator)Sets the api operator for doing api calls booleanequals(Object o)inthashCode()intdescribeContents()voidwriteToParcel(Parcel dest, int flags)static Result<List<MenigaUserEvent>>fetch()Gets a user events subscriptions by id static Result<Void>subscribe(List<MenigaUserEvent> userEvents, boolean subscribed, String channel, String reason)Set user event subscription static Result<Void>updateSettings(Map<String, String> subscriptionSettings)List<UserEventSubscription>getSubscriptions()List<UserEventSetting>getSettings()List<MenigaUserEvent>getChildren()-
-
Method Detail
-
setOperator
static void setOperator(MenigaUserEventsOperations operator)
Sets the api operator for doing api calls
- Parameters:
operator- An object that implements the MenigaUserEventOperations interface for carrying out api operations on this class.
-
hashCode
int hashCode()
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
fetch
static Result<List<MenigaUserEvent>> fetch()
Gets a user events subscriptions by id
-
subscribe
static Result<Void> subscribe(List<MenigaUserEvent> userEvents, boolean subscribed, String channel, String reason)
Set user event subscription
-
getSubscriptions
List<UserEventSubscription> getSubscriptions()
-
getSettings
List<UserEventSetting> getSettings()
-
getChildren
List<MenigaUserEvent> getChildren()
-
-
-
-