/// <remarks/> public void IncluirDetalheAsync(estSessao s, estDetalhe d, string key, object userState) { if ((this.IncluirDetalheOperationCompleted == null)) { this.IncluirDetalheOperationCompleted = new System.Threading.SendOrPostCallback(this.OnIncluirDetalheOperationCompleted); } this.InvokeAsync("IncluirDetalhe", new object[] { s, d, key}, this.IncluirDetalheOperationCompleted, userState); }
private void FinalizaSessao() { if (Sessao.id != 0) { b.FinalizaSessao(Sessao, DateTime.Now, SECURETY_KEY); Sessao = new WSBot.estSessao(); } }
public void IncluirDetalhe(estSessao s, estDetalhe d, string key) { this.Invoke("IncluirDetalhe", new object[] { s, d, key}); }
/// <remarks/> public void IncluirDetalheAsync(estSessao s, estDetalhe d, string key) { this.IncluirDetalheAsync(s, d, key, null); }
public void IncluirLoot(estSessao s, estLoot l, string key) { this.Invoke("IncluirLoot", new object[] { s, l, key}); }
/// <remarks/> public void IncluirLootAsync(estSessao s, estLoot l, string key) { this.IncluirLootAsync(s, l, key, null); }
public void IncluirLevelUp(estSessao s, estLevelUp u, string key) { this.Invoke("IncluirLevelUp", new object[] { s, u, key}); }
/// <remarks/> public void IniciaSessaoAsync(estSessao s, string key) { this.IniciaSessaoAsync(s, key, null); }
public void IncluiNovaMorte(estSessao s, estMorte m, string key) { this.Invoke("IncluiNovaMorte", new object[] { s, m, key}); }
/// <remarks/> public void IncluiNovaMorteAsync(estSessao s, estMorte m, string key) { this.IncluiNovaMorteAsync(s, m, key, null); }
/// <remarks/> public void FinalizaSessaoAsync(estSessao s, System.DateTime d, string key, object userState) { if ((this.FinalizaSessaoOperationCompleted == null)) { this.FinalizaSessaoOperationCompleted = new System.Threading.SendOrPostCallback(this.OnFinalizaSessaoOperationCompleted); } this.InvokeAsync("FinalizaSessao", new object[] { s, d, key}, this.FinalizaSessaoOperationCompleted, userState); }
/// <remarks/> public void FinalizaSessaoAsync(estSessao s, System.DateTime d, string key) { this.FinalizaSessaoAsync(s, d, key, null); }
public void FinalizaSessao(estSessao s, System.DateTime d, string key) { this.Invoke("FinalizaSessao", new object[] { s, d, key}); }
private void IniciaSessao() { if (Sessao.id == 0) { Sessao = new WSBot.estSessao(); Sessao.nome = Styx.StyxWoW.Me.Name.ToString(); Sessao.dtInicio = DateTime.Now; Sessao.versao = Version.ToString(); Sessao.server = Styx.StyxWoW.Me.RealmName.ToString(); Sessao.lvl = Styx.StyxWoW.Me.Level.ToString(); Sessao.dirWoW = wowpath = Styx.StyxWoW.Memory.Process.MainModule.FileName.Substring(0, Styx.StyxWoW.Memory.Process.MainModule.FileName.Length - 8); try { Sessao.id = b.IniciaSessao(Sessao, SECURETY_KEY); } catch (System.Web.Services.Protocols.SoapException ex) { Logging.Write(string.Format("[MasterControl]: ERRO: {0}", ex.Message)); return; } Logging.Write(string.Format("[MasterControl]: New Session Begins - ID: {0}", Sessao.id)); } }
/// <remarks/> public void IncluirLevelUpAsync(estSessao s, estLevelUp u, string key) { this.IncluirLevelUpAsync(s, u, key, null); }
private void onStop(EventArgs args) { Styx.CommonBot.BotEvents.Player.OnPlayerDied -= onDead; Styx.CommonBot.BotEvents.Player.OnLevelUp -= onLevel; Logging.Write(string.Format("[MasterControl]: Session Stoped - ID: {0}", Sessao.id)); FinalizaSessao(); Sessao = new WSBot.estSessao(); }
public decimal IniciaSessao(estSessao s, string key) { object[] results = this.Invoke("IniciaSessao", new object[] { s, key}); return ((decimal)(results[0])); }