class Hamilton::Types::SuggestedPostParameters

Overview

Contains parameters of a post that is being suggested by the bot.

Included Modules

Defined in:

types/suggested_post_parameters.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


Proposed price for the post. If the field is omitted, then the post is unpaid.


def price=(price : Hamilton::Types::SuggestedPostPrice | Nil) #

Proposed price for the post. If the field is omitted, then the post is unpaid.


def send_date : Int32 | Nil #

Proposed send date of the post. If specified, then the date must be between 300 second and 2678400 seconds (30 days) in the future. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user who approves it.


def send_date=(send_date : Int32 | Nil) #

Proposed send date of the post. If specified, then the date must be between 300 second and 2678400 seconds (30 days) in the future. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user who approves it.