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) 构造函数 |
Modifier and Type | Method and Description |
|---|---|
java.lang.String | getAppId() 获取订阅所属应用ID |
java.lang.String | getDetailInfo() 获取订阅详细信息 |
int | getLastNotifyDate() 获取上次通知时间 |
java.lang.String | getSubscriberId() 获取订阅者id |
void | setAppId(java.lang.String appId) 设置订阅所属应用ID |
void | setDetailInfo(java.lang.String detailInfo) 设置订阅详细信息 |
void | setLastNotifyDate(int lastNotifyDate) 设置上次通知时间 |
void | setSubscriberId(java.lang.String subscriberId) 设置订阅者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)
构造函数Parameters:
Parameter Name | Parameter Description |
|---|---|
type | 订阅类型 |
subType | 订阅子类型 |
openId | 华为账号openid |
startDay | 订阅开始生效时间 |
public void setAppId(java.lang.String appId)
设置订阅所属应用IDParameters:
Parameter Name | Parameter Description |
|---|---|
appId | 所属应用ID |
public void setSubscriberId(java.lang.String subscriberId)
设置订阅者idParameters:
Parameter Name | Parameter Description |
|---|---|
subscriberId | 订阅者ID |