目录

Subscription

java.lang.Object

|---com.huawei.hihealth.model.EventTypeInfo

|---|---com.huawei.hihealth.model.Subscription

public class Subscription
extends EventTypeInfo
订阅记录

Since:

2022-04-10

Nested Class Summary

Nested classes/interfaces inherited from interface android.os.Parcelable

android.os.Parcelable.ClassLoaderCreator, android.os.Parcelable.Creator

Field Summary

Fields inherited from interface android.os.Parcelable

CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE

Constructor Summary

Constructor and Description

Subscription(SampleEvent.Type type, java.lang.String subType, java.lang.String openId, int startDay) 构造函数

Method Summary

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 java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods inherited from interface android.os.Parcelable

describeContents, writeToParcel

Constructor Detail

[h2]Subscription

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

订阅开始生效时间

Method Detail

[h2]getAppId

public java.lang.String getAppId()

获取订阅所属应用ID

Returns:

所属应用ID

[h2]setAppId

public void setAppId(java.lang.String appId)

设置订阅所属应用ID

Parameters:

Parameter Name

Parameter Description

appId

所属应用ID

[h2]getSubscriberId

public java.lang.String getSubscriberId()

获取订阅者id

Returns:

订阅者ID

[h2]setSubscriberId

public void setSubscriberId(java.lang.String subscriberId)

设置订阅者id

Parameters:

Parameter Name

Parameter Description

subscriberId

订阅者ID

[h2]getDetailInfo

public java.lang.String getDetailInfo()

获取订阅详细信息

Returns:

订阅详细信息

[h2]setDetailInfo

public void setDetailInfo(java.lang.String detailInfo)

设置订阅详细信息

Parameters:

Parameter Name

Parameter Description

detailInfo

订阅详细信息

[h2]getLastNotifyDate

public int getLastNotifyDate()

获取上次通知时间

Returns:

上次通知时间

[h2]setLastNotifyDate

public void setLastNotifyDate(int lastNotifyDate)

设置上次通知时间

Parameters:

Parameter Name

Parameter Description

lastNotifyDate

上次通知时间