Package org.drinkless.tdlib
Class TdApi.SendMessageViewMetrics
- Enclosing class:
TdApi
Informs TDLib about details of a message view by the user from a chat, a message thread or a forum topic history. The method must be called if the message wasn't seen for more than 300 milliseconds, the viewport was destroyed, or the total view duration exceeded 5 minutes.
Returns Ok
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.Function
TdApi.Function.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionintThe amount of time the message was seen by at least 1 pixel within 15 seconds after any action from the user; in milliseconds.longChat identifier.static final intIdentifier uniquely determining type of the object.intThe ratio of the post height to the viewport height in 1/1000 fractions.longThe identifier of the message being viewed.intThe ratio of the viewed post height to the full post height in 1/1000 fractions; 0-1000.intThe amount of time the message was seen by at least 1 pixel; in milliseconds. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which informs TDLib about details of a message view by the user from a chat, a message thread or a forum topic history.SendMessageViewMetrics(long chatId, long messageId, int timeInViewMs, int activeTimeInViewMs, int heightToViewportRatioPerMille, int seenRangeRatioPerMille) Creates a function, which informs TDLib about details of a message view by the user from a chat, a message thread or a forum topic history. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
chatId
public long chatIdChat identifier. -
messageId
public long messageIdThe identifier of the message being viewed. -
timeInViewMs
public int timeInViewMsThe amount of time the message was seen by at least 1 pixel; in milliseconds. -
activeTimeInViewMs
public int activeTimeInViewMsThe amount of time the message was seen by at least 1 pixel within 15 seconds after any action from the user; in milliseconds. -
heightToViewportRatioPerMille
public int heightToViewportRatioPerMilleThe ratio of the post height to the viewport height in 1/1000 fractions. -
seenRangeRatioPerMille
public int seenRangeRatioPerMilleThe ratio of the viewed post height to the full post height in 1/1000 fractions; 0-1000. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SendMessageViewMetrics
public SendMessageViewMetrics()Default constructor for a function, which informs TDLib about details of a message view by the user from a chat, a message thread or a forum topic history. The method must be called if the message wasn't seen for more than 300 milliseconds, the viewport was destroyed, or the total view duration exceeded 5 minutes.Returns
Ok -
SendMessageViewMetrics
public SendMessageViewMetrics(long chatId, long messageId, int timeInViewMs, int activeTimeInViewMs, int heightToViewportRatioPerMille, int seenRangeRatioPerMille) Creates a function, which informs TDLib about details of a message view by the user from a chat, a message thread or a forum topic history. The method must be called if the message wasn't seen for more than 300 milliseconds, the viewport was destroyed, or the total view duration exceeded 5 minutes.Returns
Ok- Parameters:
chatId- Chat identifier.messageId- The identifier of the message being viewed.timeInViewMs- The amount of time the message was seen by at least 1 pixel; in milliseconds.activeTimeInViewMs- The amount of time the message was seen by at least 1 pixel within 15 seconds after any action from the user; in milliseconds.heightToViewportRatioPerMille- The ratio of the post height to the viewport height in 1/1000 fractions.seenRangeRatioPerMille- The ratio of the viewed post height to the full post height in 1/1000 fractions; 0-1000.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Function<TdApi.Ok>- Returns:
- this.CONSTRUCTOR
-