Esempio n. 1
0
        public List <PrivateListMember> PrivateListMembers(bool pForceRefetchOfData = false)
        {
            if (pForceRefetchOfData)
            {
                _privateListMembers = null;
            }

            if (_privateListMembers == null)
            {
                WebCallResult res = PrivateListMember.GetPrivateListMembers(HomeServer, this.ObjectId, _userOwnerObjectId,
                                                                            out _privateListMembers);
                if (res.Success == false)
                {
                    HomeServer.RaiseErrorEvent("Error getting private list members:" + res);
                }
            }

            return(_privateListMembers);
        }
Esempio n. 2
0
 /// <summary>
 /// Fetch the list of members for the current instance of the PrivateList.  All members of all types are returned in a generic list.
 /// </summary>
 /// <param name="pDistributionListObjectId">
 /// The GUID of the distribution list to get the membership list for
 /// </param>
 /// <param name="pOwnerUserObjectId">
 /// User that owns the private list
 /// </param>
 /// <param name="pMemberList">
 /// Generic list of DistributionListMember objects passed back on an out param.
 /// </param>
 /// <param name="pConnectionServer">
 /// The Connection server that the distribution list is homed on.
 /// </param>
 /// <returns>
 /// Instance of the WebCallResults class containing details of the items sent and recieved from the CUPI interface.
 /// </returns>
 public static WebCallResult GetMembersList(ConnectionServerRest pConnectionServer, string pDistributionListObjectId, string pOwnerUserObjectId,
                                            out List <PrivateListMember> pMemberList)
 {
     return(PrivateListMember.GetPrivateListMembers(pConnectionServer, pDistributionListObjectId, pOwnerUserObjectId, out pMemberList));
 }