Exemplo n.º 1
0
 public JSONRCMessageTypeRecord(RCMessageTypeRecord s, IBehaviorsConfiguration config)
 {
     if (config.DefaultValuesBehavior == DefaultValuesBehavior.DontSend)
     {
         AttrMessageType = ConvertToRestWithoutDefaults(s.ssENMessageType, new ENMessageTypeEntityRecord(null), ssContactManager.RestRecords.JSONENMessageTypeEntityRecord.FromStructureDelegate(config));
     }
     else
     {
         AttrMessageType = ssContactManager.RestRecords.JSONENMessageTypeEntityRecord.FromStructure(s.ssENMessageType, config);
     }
 }
Exemplo n.º 2
0
        public static ENMessageTypeEntityRecord ToStructure(ssContactManager.RestRecords.JSONENMessageTypeEntityRecord obj, IBehaviorsConfiguration config)
        {
            ENMessageTypeEntityRecord s = new ENMessageTypeEntityRecord(null);

            if (obj != null)
            {
                s.ssId    = obj.AttrId == null ? 0: obj.AttrId.Value;
                s.ssLabel = obj.AttrLabel == null ? "": obj.AttrLabel;
            }
            return(s);
        }