public static bool OpModContact(Contact ct, uint bitMask) { ModContact.Builder builder = ModContact.CreateBuilder(); builder.UserName = Util.toSKString(ct.strUsrName); builder.NickName = Util.toSKString(ct.strNickName); builder.PYInitial = Util.toSKString(ct.strPYInitial); builder.QuanPin = Util.toSKString(ct.strQuanPin); builder.Sex = ct.nSex; builder.ImgBuf = Util.toSKBuffer(""); builder.BitMask = bitMask; builder.BitVal = ct.nFlags; builder.ImgFlag = ct.nImgFlag; builder.Remark = Util.toSKString(ct.strRemark); builder.RemarkPYInitial = Util.toSKString(ct.strRemarkPYInitial); builder.RemarkQuanPin = Util.toSKString(ct.strRemarkQuanPin); builder.ContactType = ct.nContactType; builder.RoomInfoCount = 0; builder.DomainList = Util.toSKString(ct.strDomainList); builder.ChatRoomNotify = ct.nChatRoomNotify; builder.AddContactScene = ct.nAddContactScene; builder.Province = Util.NullAsNil(ct.strProvince); builder.City = Util.NullAsNil(ct.strCity); builder.Signature = Util.NullAsNil(ct.strSignature); builder.PersonalCard = ct.nPersonalCard; builder.HasWeiXinHdHeadImg = ct.nHasWeiXinHdHeadImg; builder.VerifyFlag = ct.nVerifyFlag; builder.VerifyInfo = Util.NullAsNil(ct.strVerifyInfo); return(add(new OpLog(2, builder.Build().ToByteArray()))); }
public static bool doScene(string ChatRoomName, ModContact mContact) { NSGetChatroomMemberDetail detail = new NSGetChatroomMemberDetail(); detail.mChatRoomContact = mContact; return(detail.doSceneEx(ChatRoomName)); }
private static ModBottleContact ModContactToModBottleContact(ModContact contact) { ModBottleContact.Builder builder = ModBottleContact.CreateBuilder(); builder.UserName = contact.UserName.String; builder.Type = contact.ContactType; builder.Sex = (uint)contact.Sex; builder.City = contact.City; builder.Country = contact.Country; builder.Province = contact.Province; builder.Signature = contact.Signature; builder.ImgFlag = contact.ImgFlag; builder.HDImgFlag = contact.HasWeiXinHdHeadImg; builder.BigHeadImgUrl = contact.BigHeadImgUrl; builder.SmallHeadImgUrl = contact.SmallHeadImgUrl; return(builder.Build()); }