About 153 results: "List<Object> repo:VirtualReality/3rdparty-addon-modules"
Page 1 of 8
Filter Results
Sources
Languages
Filter Results
Try Search On
JsonSerializerInternalReader.cs in 3rdparty-addon-modules https://bitbucket.org/VirtualReality/3rdparty-addon-modules.git | 1460 lines | C#
  1.       throw JsonSerializationException.Create(reader, @"Cannot deserialize the current JSON object (e.g. {{""name"":""value""}}) into type '{0}' because the type requires a {1} to deserialize correctly.
  2. To fix this error either change the JSON to a {1} or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
  3.         throw JsonSerializationException.Create(reader, @"Cannot deserialize the current JSON array (e.g. [1,2,3]) into type '{0}' because the type requires a {1} to deserialize correctly.
  4. To fix this error either change the JSON to a {1} or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.
  5. 
                        
  6.     private object CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, object existingValue, string id)
  7.         {
  8.           bool isTemporaryListReference;
  9.           IList list = CollectionUtils.CreateList(contract.CreatedType, out isTemporaryListReference);
  10. 
                        
  11.           if (id != null && isTemporaryListReference)
  12.             throw JsonSerializationException.Create(reader, "Cannot preserve reference to array or readonly list: {0}.".FormatWith(CultureInfo.InvariantCulture, contract.UnderlyingType));
  13. 
                        
  14. #if !PocketPC
  15.           if (contract.OnSerializing != null && isTemporaryListReference)
  16.             throw JsonSerializationException.Create(reader, "Cannot call OnSerializing on an array or readonly list: {0}.".FormatWith(CultureInfo.InvariantCulture, contract.UnderlyingType));


















LindenMessages.cs in 3rdparty-addon-modules https://bitbucket.org/VirtualReality/3rdparty-addon-modules.git | 5119 lines | C#
  1.  * - Redistributions of source code must retain the above copyright notice, this
  2.  *   list of conditions and the following disclaimer.
  3.         public ulong RegionHandle;
  4.         /// <summary>A Uri which contains a list of Capabilities the simulator supports</summary>
  5.             // the Linden sim will not include the NewGroupData block, but
  6.             // it will instead set all ListInProfile fields to false
  7.                     NewGroupData newGroupData = new NewGroupData();
  8.                     newGroupData.ListInProfile = newGroupMap["ListInProfile"].AsBoolean();
  9.         public UUID AgentID;
  10.         /// <summary>A list containing Key/Value pairs, known valid values:
  11.     /// 
  12.     /// When an agent initially joins a session the AgentUpdatesBlock object will contain a list of session members including
  13.     /// </summary>
  14.     public class ChatterBoxSessionAgentListUpdatesMessage : IMessage
  15.         // initial when agent joins session
  16.         // <llsd><map><key>events</key><array><map><key>body</key><map><key>agent_updates</key><map><key>32939971-a520-4b52-8ca5-6085d0e39933</key><map><key>info</key><map><key>can_voice_chat</key><boolean>1</boolean><key>is_moderator</key><boolean>1</boolean></map><key>transition</key><string>ENTER</string></map><key>ca00e3e1-0fdb-4136-8ed4-0aab739b29e8</key><map><key>info</key><map><key>can_voice_chat</key><boolean>1</boolean><key>is_moderator</key><boolean>0</boolean></map><key>transition</key><string>ENTER</string></map></map><key>session_id</key><string>be7a1def-bd8a-5043-5d5b-49e3805adf6b</string><key>updates</key><map><key>32939971-a520-4b52-8ca5-6085d0e39933</key><string>ENTER</string><key>ca00e3e1-0fdb-4136-8ed4-0aab739b29e8</key><string>ENTER</string></map></map><key>message</key><string>ChatterBoxSessionAgentListUpdates</string></map><map><key>body</key><map><key>agent_updates</key><map><key>32939971-a520-4b52-8ca5-6085d0e39933</key><map><key>info</key><map><key>can_voice_chat</key><boolean>1</boolean><key>is_moderator</key><boolean>1</boolean></map></map></map><key>session_id</key><string>be7a1def-bd8a-5043-5d5b-49e3805adf6b</string><key>updates</key><map /></map><key>message</key><string>ChatterBoxSessionAgentListUpdates</string></map></array><key>id</key><integer>5</integer></map></llsd>


Back to Top