internal static PNMembersInputForJSON[] ConvertPNMembersInputForJSON(List <PNMembersInput> input) { List <PNMembersInputForJSON> pnMembersInputForJSONList = new List <PNMembersInputForJSON>(); foreach (PNMembersInput pnMembersInput in input) { PNMembersInputForJSON pnMembersInputForJSON = new PNMembersInputForJSON(); pnMembersInputForJSON.custom = pnMembersInput.Custom; pnMembersInputForJSON.id = pnMembersInput.ID; pnMembersInputForJSONList.Add(pnMembersInputForJSON); } return(pnMembersInputForJSONList.ToArray()); }
internal static PNMembersInputForJSON[] ConvertPNMembersInputForJSON(List <PNChannelMembersSet> input) { List <PNMembersInputForJSON> pnMembersInputForJSONList = new List <PNMembersInputForJSON>(); if (input != null) { foreach (PNChannelMembersSet pnMembersInput in input) { PNMembersInputForJSON pnMembersInputForJSON = new PNMembersInputForJSON(); pnMembersInputForJSON.custom = pnMembersInput.Custom; pnMembersInputForJSON.uuid = new PNChannelMembersUUIDForJSON { id = pnMembersInput.UUID.ID }; pnMembersInputForJSONList.Add(pnMembersInputForJSON); } } return(pnMembersInputForJSONList.ToArray()); }