public IOEmbedTweet CreateOEmbedTweet(IOEmbedTweetDTO oEmbedTweetDTO)
        {
            if (oEmbedTweetDTO == null)
            {
                return(null);
            }

            return(new OEmbedTweet(oEmbedTweetDTO));
        }
Beispiel #2
0
        // Generate OEmbedTweet from DTO
        public IOEmbedTweet GenerateOEmbedTweetFromDTO(IOEmbedTweetDTO oEmbedTweetDTO)
        {
            if (oEmbedTweetDTO == null)
            {
                return(null);
            }

            var parameterOverride = _mentionUnityFactory.GenerateParameterOverrideWrapper("oEmbedTweetDTO", oEmbedTweetDTO);
            var oEmbedTweet       = _oembedTweetUnityFactory.Create(parameterOverride);

            return(oEmbedTweet);
        }
        // Generate OEmbedTweet from DTO
        public IOEmbedTweet GenerateOEmbedTweetFromDTO(IOEmbedTweetDTO oEmbedTweetDTO)
        {
            if (oEmbedTweetDTO == null)
            {
                return null;
            }

            var parameterOverride = _mentionUnityFactory.GenerateParameterOverrideWrapper("oEmbedTweetDTO", oEmbedTweetDTO);
            var oEmbedTweet = _oembedTweetUnityFactory.Create(parameterOverride);

            return oEmbedTweet;
        }
Beispiel #4
0
 public OEmbedTweet(IOEmbedTweetDTO oEmbedTweetDTO)
 {
     _oembedTweetDTO = oEmbedTweetDTO;
 }
 public OEmbedTweet(IOEmbedTweetDTO oEmbedTweetDTO)
 {
     _oembedTweetDTO = oEmbedTweetDTO;
 }