예제 #1
0
        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());
        }
예제 #2
0
        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());
        }