public static GithubUrl Copy(GithubUrl source)
        {
            GithubUrl url = null;

            if (source != null)
            {
                url = new GithubUrl();
                url.Protocol = source.Protocol;
                url.Format = source.Format;
                url.UserAgent = source.UserAgent;
                url.Port = source.Port;
                url.Timeout = source.Timeout;
                url.Login = source.Login;
                url.Token = source.Token;
                url.Path = source.Path;
            }

            return url;
        }
Exemple #2
0
 public UserApi(GithubUrl url)
     : base(url)
 {
 }
Exemple #3
0
 public Api(GithubUrl url)
 {
     _githubUrl = url;
 }
Exemple #4
0
 public Api()
 {
     _githubUrl = new GithubUrl();
 }