Class: TD::Types::PushMessageContent::GameScore

Inherits:
TD::Types::PushMessageContent show all
Defined in:
lib/tdlib/types/push_message_content/game_score.rb

Overview

A new high score was achieved in a game.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#is_pinnedBoolean

True, if the message is a pinned message with the specified content.

Returns:

  • (Boolean)

    the current value of is_pinned



7
8
9
# File 'lib/tdlib/types/push_message_content/game_score.rb', line 7

def is_pinned
  @is_pinned
end

#scoreInteger

New score, 0 for pinned message.

Returns:

  • (Integer)

    the current value of score



7
8
9
# File 'lib/tdlib/types/push_message_content/game_score.rb', line 7

def score
  @score
end

#titleString?

Game title, empty for pinned message.

Returns:

  • (String, nil)

    the current value of title



7
8
9
# File 'lib/tdlib/types/push_message_content/game_score.rb', line 7

def title
  @title
end