struct Murcure::Protos::Authenticate

Included Modules

Defined in:

murcure/utils/protos.cr

Constant Summary

FIELDS = {1 => {name: :username, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :password, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :tokens, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 4 => {name: :celt_versions, pb_type: :uint64, crystal_type: UInt64, cast_type: Array(UInt64)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 5 => {name: :opus, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: false, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(buf : Protobuf::Buffer) #

def self.new(username : String | Nil = nil, password : String | Nil = nil, tokens : Array(String) | Nil = nil, celt_versions : Array(UInt64) | Nil = nil, opus : Bool | Nil = false.as(Bool)) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def celt_versions : Array(UInt64) | Nil #

def celt_versions=(celt_versions : Array(UInt64) | Nil) #

def opus : Bool | Nil #

def opus=(opus : Bool | Nil) #

def password : String | Nil #

def password=(password : String | Nil) #

def to_protobuf(io : IO, embedded = false) #

def to_protobuf #

def tokens : Array(String) | Nil #

def tokens=(tokens : Array(String) | Nil) #

def username : String | Nil #

def username=(username : String | Nil) #