public override Aurora.Framework.IDataTransferable Duplicate() { GroupProposalInfo p = new GroupProposalInfo(); p.FromOSD(ToOSD()); return(p); }
private string StartGroupProposal(string request, UUID agentID) { OSDMap map = (OSDMap)OSDParser.DeserializeLLSDXml(request); int duration = map["duration"].AsInteger(); UUID group = map["group-id"].AsUUID(); double majority = map["majority"].AsReal(); string text = map["proposal-text"].AsString(); int quorum = map["quorum"].AsInteger(); UUID session = map["session-id"].AsUUID(); GroupProposalInfo info = new GroupProposalInfo(); info.GroupID = group; info.Majority = (float)majority; info.Quorum = quorum; info.Session = session; info.Text = text; info.Duration = duration; m_groupData.AddGroupProposal(agentID, info); OSDMap resp = new OSDMap(); resp["voted"] = OSD.FromBoolean(true); return OSDParser.SerializeLLSDXmlString(resp); }
public void AddGroupProposal(UUID agentID, GroupProposalInfo info) { }
public override Aurora.Framework.IDataTransferable Duplicate() { GroupProposalInfo p = new GroupProposalInfo(); p.FromOSD(ToOSD()); return p; }