Skip to content

Missing IssueType members NoCamera and NoMicrophone #140

@vesuvian

Description

@vesuvian

The IssueType enum is missing members for "No camera" and "No microphone". I ran into this while calling Dashboards.GetIssuesOfZoomRoomAsync - JSON deserialization failed.

Newtonsoft.Json.JsonSerializationException
  HResult=0x80131500
  Message=Error converting value "No camera" to type 'ZoomNet.Models.IssueType'. Path 'issue_details[0].issue', line 1, position 146.
  Source=Newtonsoft.Json
  StackTrace:
   at Newtonsoft.Json.Converters.StringEnumConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType)
   at Newtonsoft.Json.Linq.JToken.ToObject(Type objectType, JsonSerializer jsonSerializer)
   at Newtonsoft.Json.Linq.JToken.ToObject[T](JsonSerializer jsonSerializer)
   at ZoomNet.Internal.<AsPaginatedResponseWithTokenAndDateRange>d__45`1.MoveNext()
....

  This exception was originally thrown at this call stack:
    [External Code]

Inner Exception 1:
ArgumentException: Requested value 'No camera' was not found.

Metadata

Metadata

Assignees

Labels

BugThis change resolves a defect

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions