Example #1
0
        public void ParseSerializeData(CCCommunicateClass.Seria_ReplyPackage obj)
        {
            base.ParseSerializeData(obj as CCCommunicateClass.Seria_ParamPackage);
            switch (obj.ReplyState)
            {
            case (int)Middleware_ReplyInfo.S_OK:
            {
                this.ReplyState = Middleware_ReplyInfo.S_OK;
                break;
            }

            case (int)Middleware_ReplyInfo.S_FAILD:
            {
                this.ReplyState = Middleware_ReplyInfo.S_FAILD;
                break;
            }

            case (int)Middleware_ReplyInfo.E_FAILD:
            {
                this.ReplyState = Middleware_ReplyInfo.E_FAILD;
                break;
            }

            default:
            {
                throw new ArgumentException("CCCommunicateClass.Seria_ReplyPackage.ReplyState无效");
            }
            }
        }
Example #2
0
 public ReplyPackage(Middleware_ReplyInfo state,
                     Dictionary <string, byte[]> _attrDefaultValues)
     : base("ReplyParamPackage", _attrDefaultValues)
 {
     ReplyState = state;
 }