java.lang.Object |---com.huawei.hihealth.model.EventTypeInfo |---|---com.huawei.hihealth.model.Subscription public class Subscription extends EventTypeInfo |
Since:
2022-04-10Nested classes/interfaces inherited from interface android.os.Parcelable |
|---|
android.os.Parcelable.ClassLoaderCreator, android.os.Parcelable.Creator |
Fields inherited from interface android.os.Parcelable |
|---|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
Constructor and Description |
|---|
Subscription(SampleEvent.Type type, java.lang.String subType, java.lang.String openId, int startDay) Constructor. |
Modifier and Type | Method and Description |
|---|---|
java.lang.String | getAppId() Obtains the app ID to which the subscription belongs. |
java.lang.String | getDetailInfo() Obtains the subscription details. |
int | getLastNotifyDate() Obtains the time of the last notification. |
java.lang.String | getSubscriberId() Obtains the subscriber ID. |
void | setAppId(java.lang.String appId) Sets the app ID to which the subscription belongs. |
void | setDetailInfo(java.lang.String detailInfo) Sets the subscription details. |
void | setLastNotifyDate(int lastNotifyDate) Sets the time of the last notification. |
void | setSubscriberId(java.lang.String subscriberId) Sets the subscriber ID. |
Methods inherited from class com.huawei.hihealth.model.EventTypeInfo |
|---|
getEventType, getOpenId, getStartDay, getSubscriptionId, getSubscriptionMode, getSubType, getType, setEventType, setOpenId, setStartDay, setSubscriptionId, setSubscriptionMode, setSubType, setType |
Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface android.os.Parcelable |
|---|
describeContents, writeToParcel |
public Subscription(SampleEvent.Type type, java.lang.String subType, java.lang.String openId, int startDay)
Constructor.Parameters:
Parameter Name | Parameter Description |
|---|---|
type | Subscription type. |
subType | Subscription subtype. |
openId | OpenID of the HUAWEI ID. |
startDay | Time when the subscription starts to take effect |
public java.lang.String getAppId()
Obtains the app ID to which the subscription belongs.Returns:
App ID.
public void setAppId(java.lang.String appId)
Sets the app ID to which the subscription belongs.Parameters:
Parameter Name | Parameter Description |
|---|---|
appId | App ID. |
public java.lang.String getSubscriberId()
Obtains the subscriber ID.Returns:
Subscriber ID.
public void setSubscriberId(java.lang.String subscriberId)
Sets the subscriber ID.Parameters:
Parameter Name | Parameter Description |
|---|---|
subscriberId | Subscriber ID. |
public java.lang.String getDetailInfo()
Obtains the subscription details.Returns:
Subscription details.
public void setDetailInfo(java.lang.String detailInfo)
Sets the subscription details.Parameters:
Parameter Name | Parameter Description |
|---|---|
detailInfo | Subscription details. |