/// <summary> /// Creates new instance representing successful package /// </summary> /// <param name="name">Name of the package</param> /// <param name="encoding">Encoding of the package</param> /// <param name="url">Url of the package</param> /// <param name="twoLetterLanguage">Two letter language</param> private CrawlerDownloadPackageModel(NameModel name, Encoding encoding, String url, String twoLetterLanguage) { this.Name = name; this.Encoding = encoding; this.Url = url; this.TwoLetterLanguage = twoLetterLanguage; }
/// <summary> /// Creates new instance /// </summary> /// <param name="name">Name of the document</param> /// <param name="url">Url of the document</param> /// <param name="httpGet">Http response for <paramref name="url"/></param> public CrawlerDownloadDocumentModel(NameModel name, String url, HttpModel httpGet) { this.Name = name; this.Url = url; this.HttpGet = httpGet; }
/// <summary> /// Creates package representing successful download /// </summary> /// <param name="name">Name of the package</param> /// <param name="encoding">Encofing of the package</param> /// <param name="url">Url of the package</param> /// <param name="twoLetterLanguage">Two letter language for the package</param> /// <returns></returns> public static CrawlerDownloadPackageModel CreateSuccess(NameModel name, Encoding encoding, String url, String twoLetterLanguage) { return(new CrawlerDownloadPackageModel(name, encoding, url, twoLetterLanguage)); }
/// <summary> /// Creates new document /// </summary> /// <param name="name">Name of the document</param> /// <param name="url">Url of the document</param> /// <param name="httpGet">Http response for the <paramref name="url"/></param> /// <returns></returns> public static CrawlerDownloadDocumentModel Create(NameModel name, String url, HttpModel httpGet) { return(new CrawlerDownloadDocumentModel(name, url, httpGet)); }