예제 #1
0
        public ApiKeyBase GetApiKeyBase()
        {
            ApiKeyBase res = new ApiKeyBase();

            res.ApiKey          = ApiKey;
            res.ConferenceId    = ConferenceId;
            res.Expires         = Expires;
            res.CreatedByUserID = CreatedByUserID;
            res.CreatedOnDate   = CreatedOnDate;
            return(res);
        }
예제 #2
0
        public void ReadApiKeyBase(ApiKeyBase apiKey)
        {
            if (!String.IsNullOrEmpty(apiKey.ApiKey))
            {
                ApiKey = apiKey.ApiKey;
            }

            if (apiKey.ConferenceId > -1)
            {
                ConferenceId = apiKey.ConferenceId;
            }

            if (apiKey.Expires != null)
            {
                Expires = apiKey.Expires;
            }

            if (apiKey.CreatedByUserID > -1)
            {
                CreatedByUserID = apiKey.CreatedByUserID;
            }

            CreatedOnDate = apiKey.CreatedOnDate;
        }