private void GroupActiveProposalsRequest(IClientAPI client, UUID agentID, UUID sessionID, UUID groupID, UUID transactionID) { List<GroupProposalInfo> activeProposals = m_groupData.GetActiveProposals(client.AgentId, groupID); GroupActiveProposals[] proposals = new GroupActiveProposals[activeProposals.Count]; int i = 0; foreach (GroupProposalInfo proposal in activeProposals) { proposals[i] = new GroupActiveProposals(); proposals[i].ProposalText = proposal.Text; proposals[i].Majority = proposal.Majority.ToString(); proposals[i].Quorum = proposal.Quorum.ToString(); proposals[i].StartDateTime = Util.BuildYMDDateString(proposal.Created); proposals[i].TerseDateID = ""; proposals[i].VoteID = proposal.VoteID.ToString(); proposals[i].VoteInitiator = proposal.BallotInitiator.ToString(); proposals[i].VoteAlreadyCast = proposal.VoteCast != ""; proposals[i].VoteCast = proposal.VoteCast; proposals[i++].EndDateTime = Util.BuildYMDDateString(proposal.Ending); } client.SendGroupActiveProposals(groupID, transactionID, proposals); }
private void GroupActiveProposalsRequest(IClientAPI client, UUID agentID, UUID groupID, UUID transactionID, UUID sessionID) { GroupActiveProposals[] proposals = new GroupActiveProposals[0]; /*proposals[0] = new GroupActiveProposals(); proposals[0].ProposalText = "TEST PROPOSAL"; proposals[0].Majority = "1"; proposals[0].Quorum = "0"; proposals[0].StartDateTime = ""; proposals[0].TerseDateID = ""; proposals[0].VoteID = UUID.Random().ToString(); proposals[0].VoteInitiator = agentID.ToString(); proposals[0].EndDateTime = "";*/ client.SendGroupActiveProposals(groupID, transactionID, proposals); }