Class: TD::Types::ChatRevenueTransactionType::Earnings

Inherits:
TD::Types::ChatRevenueTransactionType show all
Defined in:
lib/tdlib/types/chat_revenue_transaction_type/earnings.rb

Overview

Describes earnings from sponsored messages in a chat in some time frame.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#end_dateInteger

Point in time (Unix timestamp) when the earnings ended.

Returns:

  • (Integer)

    the current value of end_date



6
7
8
# File 'lib/tdlib/types/chat_revenue_transaction_type/earnings.rb', line 6

def end_date
  @end_date
end

#start_dateInteger

Point in time (Unix timestamp) when the earnings started.

Returns:

  • (Integer)

    the current value of start_date



6
7
8
# File 'lib/tdlib/types/chat_revenue_transaction_type/earnings.rb', line 6

def start_date
  @start_date
end