struct Apps::DeviceState

Included Modules

Defined in:

pb-Apps/CATS_ExtStatus.pb.cr

Constant Summary

FIELDS = {1 => {name: :call_id, pb_type: :int64, crystal_type: Int64, cast_type: Int64, native: true, optional: false, repeated: false, default: nil, packed: false}, 2 => {name: :state, pb_type: DeviceState::DeviceStateEnum, crystal_type: DeviceState::DeviceStateEnum, cast_type: DeviceState::DeviceStateEnum, native: false, optional: false, repeated: false, default: nil, packed: false}, 3 => {name: :device_id, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 4 => {name: :device_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :caller_number, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :caller_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :data_set, pb_type: CATSDataSet, crystal_type: CATSDataSet, cast_type: CATSDataSet?, native: false, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :supported_specials, pb_type: SupportedSpecials, crystal_type: SupportedSpecials, cast_type: SupportedSpecials?, native: false, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :forwarding, pb_type: Forwarding, crystal_type: Forwarding, cast_type: Forwarding?, native: false, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :agent_full_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :queue, pb_type: PassiveCallInfo, crystal_type: PassiveCallInfo, cast_type: Array(PassiveCallInfo)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 12 => {name: :connect_duration, pb_type: :int32, crystal_type: Int32, cast_type: Int32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :call_partners, pb_type: CallPartnerInfo, crystal_type: CallPartnerInfo, cast_type: Array(CallPartnerInfo)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 14 => {name: :call_direction, pb_type: DeviceState::CallDirection, crystal_type: DeviceState::CallDirection, cast_type: DeviceState::CallDirection?, native: false, optional: true, repeated: false, default: nil, packed: false}, 15 => {name: :device_id_full, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 16 => {name: :images, pb_type: ImageMapping, crystal_type: ImageMapping, cast_type: Array(ImageMapping)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 17 => {name: :vnst_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 18 => {name: :vnst_id_full, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 19 => {name: :vnst_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(call_id : Int64, state : DeviceState::DeviceStateEnum, device_id : String, device_name : String | Nil = nil, caller_number : String | Nil = nil, caller_name : String | Nil = nil, data_set : CATSDataSet | Nil = nil, supported_specials : SupportedSpecials | Nil = nil, forwarding : Forwarding | Nil = nil, agent_full_name : String | Nil = nil, queue : Array(PassiveCallInfo) | Nil = nil, connect_duration : Int32 | Nil = nil, call_partners : Array(CallPartnerInfo) | Nil = nil, call_direction : DeviceState::CallDirection | Nil = nil, device_id_full : String | Nil = nil, images : Array(ImageMapping) | Nil = nil, vnst_id : String | Nil = nil, vnst_id_full : String | Nil = nil, vnst_name : String | Nil = nil) #

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

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def agent_full_name : String | Nil #

def agent_full_name=(agent_full_name : String | Nil) #

def call_direction : DeviceState::CallDirection | Nil #

def call_direction=(call_direction : DeviceState::CallDirection | Nil) #

def call_id : Int64 #

def call_id=(call_id : Int64) #

def call_partners : Array(CallPartnerInfo) | Nil #

def call_partners=(call_partners : Array(CallPartnerInfo) | Nil) #

def caller_name : String | Nil #

def caller_name=(caller_name : String | Nil) #

def caller_number : String | Nil #

def caller_number=(caller_number : String | Nil) #

def connect_duration : Int32 | Nil #

def connect_duration=(connect_duration : Int32 | Nil) #

def data_set : CATSDataSet | Nil #

def data_set=(data_set : CATSDataSet | Nil) #

def device_id : String #

def device_id=(device_id : String) #

def device_id_full : String | Nil #

def device_id_full=(device_id_full : String | Nil) #

def device_name : String | Nil #

def device_name=(device_name : String | Nil) #

def forwarding : Forwarding | Nil #

def forwarding=(forwarding : Forwarding | Nil) #

def images : Array(ImageMapping) | Nil #

def images=(images : Array(ImageMapping) | Nil) #

def queue : Array(PassiveCallInfo) | Nil #

def queue=(queue : Array(PassiveCallInfo) | Nil) #


def state=(state : DeviceState::DeviceStateEnum) #

def supported_specials : SupportedSpecials | Nil #

def supported_specials=(supported_specials : SupportedSpecials | Nil) #

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

def to_protobuf #

def vnst_id : String | Nil #

def vnst_id=(vnst_id : String | Nil) #

def vnst_id_full : String | Nil #

def vnst_id_full=(vnst_id_full : String | Nil) #

def vnst_name : String | Nil #

def vnst_name=(vnst_name : String | Nil) #