public RepPayload(IDictionary <string, object> data = null) : this() { if (data is IotivityValueDictionary) { Values = data; } else { Values = new IotivityValueDictionary(data); } }
internal RepPayload(IntPtr handle) : this() { var ocpayload = Marshal.PtrToStructure <OCRepPayload>(handle); if (ocpayload.interfaces != IntPtr.Zero) { var resource = Marshal.PtrToStructure <OCStringLL>(ocpayload.interfaces); Interfaces = resource.Values.ToArray(); } if (ocpayload.types != IntPtr.Zero) { var resource = Marshal.PtrToStructure <OCStringLL>(ocpayload.types); Types = resource.Values.ToArray(); } if (ocpayload.next != IntPtr.Zero) { Next = new RepPayload(ocpayload.next); } Values = new IotivityValueDictionary(ocpayload); }
public RepPayload() : base() { Interfaces = new List <string>(); Types = new List <string>(); Values = new IotivityValueDictionary(); }