lib/purecloudplatformclientv2/models/station.rb in purecloudplatformclientv2-3.1.7 vs lib/purecloudplatformclientv2/models/station.rb in purecloudplatformclientv2-4.0.0

- old
+ new

@@ -25,12 +25,16 @@ attr_accessor :description attr_accessor :status + # The Id of the user currently logged in and associated with the station. attr_accessor :user_id + # The Id of the user configured for the station if it is of type inin_webrtc_softphone. Empty if station type is not inin_webrtc_softphone. + attr_accessor :web_rtc_user_id + attr_accessor :primary_edge attr_accessor :secondary_edge attr_accessor :type @@ -46,10 +50,11 @@ :'id' => :'id', :'name' => :'name', :'description' => :'description', :'status' => :'status', :'user_id' => :'userId', + :'web_rtc_user_id' => :'webRtcUserId', :'primary_edge' => :'primaryEdge', :'secondary_edge' => :'secondaryEdge', :'type' => :'type', :'line_appearance_id' => :'lineAppearanceId', :'self_uri' => :'selfUri' @@ -62,10 +67,11 @@ :'id' => :'String', :'name' => :'String', :'description' => :'String', :'status' => :'String', :'user_id' => :'String', + :'web_rtc_user_id' => :'String', :'primary_edge' => :'UriReference', :'secondary_edge' => :'UriReference', :'type' => :'String', :'line_appearance_id' => :'String', :'self_uri' => :'String' @@ -98,10 +104,14 @@ if attributes.has_key?(:'userId') self.user_id = attributes[:'userId'] end + if attributes.has_key?(:'webRtcUserId') + self.web_rtc_user_id = attributes[:'webRtcUserId'] + end + if attributes.has_key?(:'primaryEdge') self.primary_edge = attributes[:'primaryEdge'] end if attributes.has_key?(:'secondaryEdge') @@ -156,10 +166,11 @@ id == o.id && name == o.name && description == o.description && status == o.status && user_id == o.user_id && + web_rtc_user_id == o.web_rtc_user_id && primary_edge == o.primary_edge && secondary_edge == o.secondary_edge && type == o.type && line_appearance_id == o.line_appearance_id && self_uri == o.self_uri @@ -172,10 +183,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, name, description, status, user_id, primary_edge, secondary_edge, type, line_appearance_id, self_uri].hash + [id, name, description, status, user_id, web_rtc_user_id, primary_edge, secondary_edge, type, line_appearance_id, self_uri].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)