目录

Subscription

java.lang.Object

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

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

public class Subscription
extends EventTypeInfo
Subscription record.

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) Constructor.

Method Summary

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 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)

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

Method Detail

[h2]getAppId

public java.lang.String getAppId()

Obtains the app ID to which the subscription belongs.

Returns:

App ID.

[h2]setAppId

public void setAppId(java.lang.String appId)

Sets the app ID to which the subscription belongs.

Parameters:

Parameter Name

Parameter Description

appId

App ID.

[h2]getSubscriberId

public java.lang.String getSubscriberId()

Obtains the subscriber ID.

Returns:

Subscriber ID.

[h2]setSubscriberId

public void setSubscriberId(java.lang.String subscriberId)

Sets the subscriber ID.

Parameters:

Parameter Name

Parameter Description

subscriberId

Subscriber ID.

[h2]getDetailInfo

public java.lang.String getDetailInfo()

Obtains the subscription details.

Returns:

Subscription details.

[h2]setDetailInfo

public void setDetailInfo(java.lang.String detailInfo)

Sets the subscription details.

Parameters:

Parameter Name

Parameter Description

detailInfo

Subscription details.

[h2]getLastNotifyDate

public int getLastNotifyDate()

Obtains the time of the last notification.

Returns:

Time of the last notification.

[h2]setLastNotifyDate

public void setLastNotifyDate(int lastNotifyDate)

Sets the time of the last notification.

Parameters:

Parameter Name

Parameter Description

lastNotifyDate

Time of the last notification.