コード例 #1
0
        internal DefaultHatenaBlogAtomPubClient(HatenaBlogAtomPubCredential credential)
        {
            if (credential == null)
            {
                throw new ArgumentNullException(nameof(credential));
            }

            this.credential   = credential;
            this.rootEndPoint = GetRootEndPont(credential.HatenaId, credential.BlogId);
        }
コード例 #2
0
 public static HatenaBlogAtomPubClient Create(HatenaBlogAtomPubCredential credential)
 {
     return(new DefaultHatenaBlogAtomPubClient(credential));
 }