public static void AtualizaEstoqueID(long IdChar) { Util.WriteLog("Inicio da Atualização de Estoque"); List<ItemUnitChar> l = CharacterFactory.GetItensChar(StyxWoW.Me, Convert.ToInt64(IdChar)); SendPlayer s = new SendPlayer(new Send()); ConverterJson conv = new ConverterJson(); string jSon = conv.ConvertTOJson(l); s.SendItensPlayer(jSon); Util.WriteLog("Final da Atualização de Estoque"); }
public static void SendNewItemVendor(ItemVendor item) { SendPlayer s = new SendPlayer(new Send()); ConverterJson conv = new ConverterJson(); string jSon = conv.ConvertTOJson(item); s.SendPlayerNewItemVendor(jSon); }
public static void AtualizaEstoqueGuildID(string nameGuild, long idGuild) { try { SendGuild sGuild = new SendGuild(new Send()); ConverterJson conv = new ConverterJson(); List<ItemUnitGuild> itensGuild = GuildFactory.GetInstanceGuild(nameGuild, idGuild); string itens = conv.ConvertTOJson(itensGuild); sGuild.SendGuildItens(itens); } catch (AggregateException aex) { aex.Handle((ex) => { return true; }); } catch (Exception ex) { Util.WriteLog(ex.Message); } }