internal DraftMessageSource(EveMailClient client, DraftMessage dbdraft) { mClient = client; mDBDraft = dbdraft; mAccount = client.Accounts.Find((t) => t.DBAccount.CharacterId == dbdraft.AccountId); mUnsaved = false; }
public Label(EveMailClient client, Account account, GetCharactersCharacterIdMailLabelsLabel label) { mClient = client; mAccount = account; Name = label.Name; Id = label.LabelId.Value; UnreadCount = label.UnreadCount.HasValue ? label.UnreadCount.Value : 0; switch (Name) { case "Inbox": Type = LabelType.Inbox; break; case "Sent": Type = LabelType.Outbox; break; case "[Corp]": Type = LabelType.CorpMail; break; case "[Alliance]": Type = LabelType.AllianceMail; break; default: Type = LabelType.Label; break; } }
public Label(EveMailClient client, Account account, int id, string name, LabelType type) { mClient = client; mAccount = account; Name = name; Id = id; UnreadCount = 0; Type = type; }
internal DraftMessageSource(EveMailClient client) { mClient = client; mDBDraft = new DraftMessage(); if (client.SendAccounts.Count > 0) { var ainfo = ((ISourceInfo)client.SendAccounts[0]); mAccount = (Account)ainfo.AccountSource; } }
internal Account(EveMailClient client, DB.Account account) { mDBAccount = account; mClient = client; mDraftLabel = new Label(mClient, this, -1, "Drafts", LabelType.Drafts); mEntityInfo.EntityType = EntityType.Character; mEntityInfo.EntityID = account.CharacterId; mEntityInfo.Name = account.CharacterName; #if FAKE_NAMES GenerateFakeInfo(); #endif mLabels.Add(mDraftLabel); mViewAccount.RegisterHandler("IsExpanded", ViewAccount_IsExpandedChanged); mViewAccount.Sync(this); mClient.UpdateAccountOperationStarted += mClient_UpdateAccountOperationStarted; mClient.AccountRemoved += mClient_AccountRemoved; }
internal UserInfoCache(EveMailClient client) { mClient = client; }