/*
Sog 游戏基础库
2016 by zouwei
*/
using System;
using System.Collections.Generic;
using Sog;
using Sog.Log;
using ProtoCSStruct;
using Sog.Gate;
namespace Version
{
public class SysNoticeServer
{
///
/// 添加或更新来自OperationServer的公告推送
///
///
public static void AddOneSysNotice(ref SSSysNotice notice)
{
List list = VersionServerUtils.GetVersionServerData().m_NoticeData;
var id = notice.Id;
list.RemoveAll(i => i.id == id);
SysNoticeData obj = new SysNoticeData();
obj.id = notice.Id;
obj.title = notice.Title.GetString();
obj.content = notice.Content.GetString();
obj.m_startTime = notice.StartTime;
obj.m_endTime = notice.EndTime;
obj.sort = notice.Sort;
obj.pic = notice.Pic.GetString();
obj.aotupop = notice.Aotupop;
obj.language = notice.Language.GetString();
list.Add(obj);
}
}
}