public void CopyFrom(BattleNet.DllPartyEvent partyEvent) { this.eventName = MemUtils.StringFromUtf8Ptr(partyEvent.eventName); this.eventData = MemUtils.StringFromUtf8Ptr(partyEvent.eventData); this.partyId = partyEvent.partyId; this.otherMemberId = partyEvent.otherMemberId; this.errorInfo = BnetErrorInfo.CreateFromDll(partyEvent.errorInfo); }
public static BnetWhisper CreateFromDll(BattleNet.DllWhisper src) { return new BnetWhisper { m_speakerId = BnetGameAccountId.CreateFromDll(src.speakerId), m_receiverId = BnetGameAccountId.CreateFromDll(src.receiverId), m_message = MemUtils.StringFromUtf8Ptr(src.message), m_timestampMicrosec = src.timestampMicrosec, m_errorInfo = BnetErrorInfo.CreateFromDll(src.errorInfo) }; }