public void Update(JobDescriptionMessage msg) { if (msg == null) throw new ArgumentNullException("msg"); Jobs = msg.jobsDescription.Select(entry => new Jobs.Job(this, entry)).ToList(); }
public void Update(JobDescriptionMessage msg) { if (msg == null) throw new ArgumentNullException("msg"); m_jobs.Clear(); foreach (var job in msg.jobsDescription) { m_jobs.Add(new Job(this, job)); } }
public static void HandleJobDescriptionMessage(Bot bot, JobDescriptionMessage message) { bot.Character.Update(message); }