public XGroupNotice Clone() { XGroupNotice clone = (XGroupNotice)MemberwiseClone(); clone.binaryBucket = (byte[])binaryBucket.Clone(); return(clone); }
public void AddGroupNotice(UUID requestingAgentID, UUID groupID, UUID noticeID, string fromName, string subject, string message, byte[] binaryBucket) { m_log.DebugFormat( "[MOCK GROUPS SERVICES CONNECTOR]: AddGroupNotice, requestingAgentID {0}, groupID {1}, noticeID {2}, fromName {3}, subject {4}, message {5}, binaryBucket.Length {6}", requestingAgentID, groupID, noticeID, fromName, subject, message, binaryBucket.Length); XGroup group = GetXGroup(groupID, null); if (group == null) return; XGroupNotice groupNotice = new XGroupNotice() { groupID = groupID, noticeID = noticeID, fromName = fromName, subject = subject, message = message, timestamp = (uint)Util.UnixTimeSinceEpoch(), hasAttachment = false, assetType = 0, binaryBucket = binaryBucket }; group.notices[noticeID] = groupNotice; m_data.StoreGroup(group); }