Package cn.evolvefield.onebot.sdk.event
Class Event
-
- All Implemented Interfaces:
public class Event extends JsonContainer
事件上报
-
-
Constructor Summary
Constructors Constructor Description Event()
-
Method Summary
Modifier and Type Method Description final StringgetPostType()final UnitsetPostType(@SerializedName(value = "post_type") String postType)final LonggetTime()final UnitsetTime(@SerializedName(value = "time") Long time)final LonggetSelfId()final UnitsetSelfId(@SerializedName(value = "self_id") Long selfId)final LongtimeInSecond()自动转换毫秒时间戳(如果是)为秒时间戳, 仅支持2000年以后的毫秒时间戳,2000年以前的认定为秒时间戳 final Integertime()-
-
Method Detail
-
getPostType
final String getPostType()
-
setPostType
final Unit setPostType(@SerializedName(value = "post_type") String postType)
-
timeInSecond
final Long timeInSecond()
自动转换毫秒时间戳(如果是)为秒时间戳, 仅支持2000年以后的毫秒时间戳,2000年以前的认定为秒时间戳
-
-
-
-