public InviteElement(string accName, string charName, InviteType type, RectangleF buttonRect) { this.accountName = accName; this.characterName = charName; this.inviteType = type; this.acceptButtonClientRect = buttonRect; }
public Invite(string to, string from, string desc, InviteType type) { this.to = to; this.from = from; this.desc = desc; this.timeExpires = DateTime.Now.AddMinutes(30).Minute; this.type = type; }
public List <InviteRecord> GetFiiiPosRecordsByInvitorId(Guid accountId, InviteType inviteType) { var sql = "SELECT * FROM dbo.InviteRecords WHERE InviterAccountId=@InviterAccountId AND [Type]=@SystemPlatformType"; using (var con = ReadConnection()) { return(con.Query <InviteRecord>(sql, new { InviterAccountId = accountId, SystemPlatformType = inviteType }).AsList()); } }
public async Task <InviteRecord> GetDetailByAccountIdAsync(Guid id, InviteType inviteType) { var sql = "SELECT * FROM InviteRecords WHERE AccountId = @AccountId AND [Type]=@InviteType"; using (var con = await ReadConnectionAsync()) { return(await con.QueryFirstOrDefaultAsync <InviteRecord>(sql, new { AccountId = id, InviteType = (byte)inviteType })); } }
void ChooseInviteType(InviteType type) { DataManager.Manager <WelfareManager>().UpdateWelfareState(1); curInviteType = type; m_trans_InviterRoot.gameObject.SetActive(type != InviteType.Invited); m_trans_InvitedRoot.gameObject.SetActive(type == InviteType.Invited); m_lstWelFareData = m_dataManager.GetWelfareDatasBy2Type(WelfareType.FriendInvite, curInviteType); m_lstWelFareData.Sort(); if (m_ctor_FriendInviteScroll != null) { m_ctor_FriendInviteScroll.CreateGrids(m_lstWelFareData.Count); } }
public static String sendInvite(String tokenid, String projectName, String userid) { try { InviteType par = new InviteType(tokenid, projectName, userid); String response = sendPostCommand("/sendInvite", par.ToString()); if (response != null) { return(response); } } catch (Exception ex) { logError(ex); } return(null); }
public Invite(string inviter, RelationshipToInvitee relationship, InviteType inviteType) { Inviter = new EntityName(inviter); Relationship = relationship; Type = inviteType; }
/// <summary> /// Initializes a new instance of the <see cref="UserInfo" /> class. /// </summary> /// <param name="identityName">identityName.</param> /// <param name="userDisplayName">userDisplayName.</param> /// <param name="domainGroup">domainGroup.</param> /// <param name="department">department.</param> /// <param name="mobilePhone">mobilePhone.</param> /// <param name="manager">manager.</param> /// <param name="permission">permission.</param> /// <param name="isDeleted">isDeleted.</param> /// <param name="securityToken">securityToken.</param> /// <param name="userType">userType.</param> /// <param name="legalPerson">legalPerson.</param> /// <param name="authenticationType">authenticationType.</param> /// <param name="adminCenterUrl">adminCenterUrl.</param> /// <param name="inviteType">inviteType.</param> /// <param name="type">type.</param> /// <param name="isRegisteredAosGroup">isRegisteredAosGroup.</param> /// <param name="isExternalUser">isExternalUser.</param> /// <param name="isAPIExceptional">isAPIExceptional.</param> /// <param name="tenantId">tenantId.</param> /// <param name="objectId">objectId.</param> /// <param name="version">version.</param> /// <param name="jobTitle">jobTitle.</param> /// <param name="usageLocation">usageLocation.</param> /// <param name="physicalDeliveryOfficeName">physicalDeliveryOfficeName.</param> /// <param name="isOtherTenantUser">isOtherTenantUser.</param> /// <param name="id">id.</param> /// <param name="displayName">displayName.</param> /// <param name="title">title.</param> /// <param name="email">email.</param> /// <param name="isValid">isValid.</param> /// <param name="existInAOS">existInAOS.</param> public UserInfo(string identityName = default(string), string userDisplayName = default(string), bool domainGroup = default(bool), string department = default(string), string mobilePhone = default(string), string manager = default(string), string permission = default(string), bool isDeleted = default(bool), string securityToken = default(string), int userType = default(int), bool legalPerson = default(bool), AuthenticationType authenticationType = default(AuthenticationType), string adminCenterUrl = default(string), InviteType inviteType = default(InviteType), string type = default(string), bool isRegisteredAosGroup = default(bool), ExternalUserType isExternalUser = default(ExternalUserType), bool isAPIExceptional = default(bool), string tenantId = default(string), string objectId = default(string), int version = default(int), string jobTitle = default(string), string usageLocation = default(string), string physicalDeliveryOfficeName = default(string), bool isOtherTenantUser = default(bool), int id = default(int), string displayName = default(string), string title = default(string), string email = default(string), bool isValid = default(bool), bool existInAOS = default(bool)) { this.IdentityName = identityName; this.UserDisplayName = userDisplayName; this.DomainGroup = domainGroup; this.Department = department; this.MobilePhone = mobilePhone; this.Manager = manager; this.Permission = permission; this.IsDeleted = isDeleted; this.SecurityToken = securityToken; this.UserType = userType; this.LegalPerson = legalPerson; this.AuthenticationType = authenticationType; this.AdminCenterUrl = adminCenterUrl; this.InviteType = inviteType; this.Type = type; this.IsRegisteredAosGroup = isRegisteredAosGroup; this.IsExternalUser = isExternalUser; this.IsAPIExceptional = isAPIExceptional; this.TenantId = tenantId; this.ObjectId = objectId; this.Version = version; this.JobTitle = jobTitle; this.UsageLocation = usageLocation; this.PhysicalDeliveryOfficeName = physicalDeliveryOfficeName; this.IsOtherTenantUser = isOtherTenantUser; this.Id = id; this.DisplayName = displayName; this.Title = title; this.Email = email; this.IsValid = isValid; this.ExistInAOS = existInAOS; }
public void Add(string emailAddress, string displayName, InviteType type, bool sendNotification) { this.Add(new EventInvite(new System.Net.Mail.MailAddress(emailAddress, displayName), type, sendNotification)); }
public SocialGameInvite(string inviter, RelationshipToInvitee relationship, InviteType inviteType, Game game) : this( new Invite(inviter, relationship, inviteType), game) { }
public void Add(string emailAddress, InviteType type) { this.Add(emailAddress, type, true); }
public void Add(string emailAddress, string displayName, InviteType type) { this.Add(emailAddress, displayName, type, true); }
public EventInvite(System.Net.Mail.MailAddress addr, InviteType type, bool sendNotification) : this(addr, type) { this._notify = sendNotification; }
public EventInvite(System.Net.Mail.MailAddress addr, InviteType type) : this(addr) { this._type = type; }
private InviteElement GetInviteElement(Element element) { string accountName = null; string characterName = null; InviteType inviteType = InviteType.Unknown; RectangleF acceptButtonRect = new RectangleF(); if (element.Children.Count == 3) { Element inviteTitlePanel = element.Children[0]; Element characterInfoPanel = element.Children[1]; Element inviteButtonsPanel = element.Children[2]; if (inviteTitlePanel.Children.Count == 2) { Element accountElement = inviteTitlePanel.Children[0]; Element inviteTextElement = inviteTitlePanel.Children[1]; if (accountElement.Children.Count == 2) { Element accountNameElement = accountElement.Children[1]; accountName = accountNameElement.Text; } if (inviteTextElement?.Text != null) { if (inviteTextElement.Text.Contains("party")) { inviteType = InviteType.Party; } else if (inviteTextElement.Text.Contains("trade")) { inviteType = InviteType.Trade; } } } if (characterInfoPanel.Children.Count == 1) { characterInfoPanel = characterInfoPanel.Children[0]; if (characterInfoPanel.Children.Count == 1) { characterInfoPanel = characterInfoPanel.Children[0]; if (characterInfoPanel.Children.Count == 5) { characterName = characterInfoPanel.Children[0].Text; } } } if (inviteButtonsPanel.Children.Count == 2) { acceptButtonRect = inviteButtonsPanel.Children[0].GetClientRect(); } } return(new InviteElement(accountName, characterName, inviteType, acceptButtonRect)); }
public void Init(RoomData roomData, InviteType match = InviteType.Null, bool isHoner = false, MatchTeamType type = MatchTeamType.Blue) { this.recordTeamType = type; this.recordInviteType = match; this.recordHoner = isHoner; this.M_StateActive.gameObject.SetActive(match == InviteType.AcceptInvite); this.M_StateLock.gameObject.SetActive(match == InviteType.Null); this.recordRoomData = roomData; this.IsShowFrame(false); if (roomData == null) { string name = string.Empty; base.name = name; this.recordUseId = name; } else { string name = roomData.UserId; base.name = name; this.recordUseId = name; } if (isHoner) { if (!base.GetComponent <KHDragDropItem>()) { base.gameObject.AddComponent <KHDragDropItem>(); } else { base.GetComponent <KHDragDropItem>().enabled = true; } base.GetComponent <KHDragDropItem>().cloneOnDrag = true; if (roomData == null) { base.GetComponent <KHDragDropItem>().enabled = false; } } else if (base.GetComponent <KHDragDropItem>()) { base.GetComponent <KHDragDropItem>().enabled = false; } this.M_Drag.gameObject.SetActive(isHoner); if (!isHoner && roomData != null) { this.M_AddFriend.gameObject.SetActive(Singleton <PvpRoomView> .Instance.IsFriend(roomData.AccountId)); } if (roomData == null) { return; } if (isHoner) { this.M_Delete.gameObject.SetActive(!roomData.IsHomeMain); } else { this.M_Delete.gameObject.SetActive(false); } this.M_SummonerName.text = roomData.NickName + ((!roomData.IsHomeMain) ? string.Empty : LanguageManager.Instance.GetStringById("GangUpUI_HouseOwner")); if (roomData.NickName == ModelManager.Instance.Get_userData_X().NickName) { this.M_SummonerName.color = new Color(1f, 0.843137264f, 0.211764708f); } else { this.M_SummonerName.color = Color.white; } this.M_SummonerName.gameObject.GetComponent <AllochroicLabelChecker>().RenderLabel(roomData.CharmRankValue); UIEventListener.Get(this.M_Delete.gameObject).onClick = new UIEventListener.VoidDelegate(this.ClickM_Delete); }
public Invite(int fromID, InviteType type) { Type = type; SenderId = fromID; }