public void HandleProject_Add(Notify notify) { if (notify.Feedback == FeedBack.Success) { Project_AddRsp Rsp = Project_AddRsp.Parser.ParseFrom(notify.message); GameFacade.SendNotification(Protocol.Project_Check, CmdType.Presenter, Rsp.Projectlist); GameFacade.SendNotification(notify.Protocol, CmdType.Presenter); } else { GameFacade.SendNotification(notify.Protocol, CmdType.Presenter, notify.Feedback); } }
public void SetProjectAdd(Notify notify) { if (notify.Feedback == FeedBack.Success) { Project_AddRsp addRsp = Project_AddRsp.Parser.ParseFrom(notify.message); projectList = addRsp.Projectlist; GameFacade.SendNotification(notify.Protocol, CmdType.Presenter, projectList); } else { GameFacade.SendNotification(notify.Protocol, CmdType.Error, notify.Feedback); } }