-
Notifications
You must be signed in to change notification settings - Fork 1
/
Serie.cs
40 lines (38 loc) · 1.25 KB
/
Serie.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AnimeWorldDownloader
{
class Serie
{
public readonly string nameSerie;
public readonly int nEpisodes;
private string nameFile;
private string baseNameFile;
private string linkSerie;
public NumberEpisode numberEpisode;
public Serie(string nameSerie, int nEpisodes, string nameFile, NumberEpisode numberEpisode)
{
this.nameSerie = nameSerie;
this.nEpisodes = nEpisodes;
this.nameFile = nameFile;
this.numberEpisode = numberEpisode;
}
public Serie(string nameSerie, int nEpisodes, string linkSerie, string nameFile, string baseNameFile, NumberEpisode numberEpisode)
{
this.nameSerie = nameSerie;
this.nEpisodes = nEpisodes;
this.linkSerie = linkSerie;
this.nameFile = nameFile;
this.baseNameFile = baseNameFile;
this.numberEpisode = numberEpisode;
}
public string GetNameFile()
{
return nameFile.Replace(numberEpisode.nEpStr, numberEpisode.ToString());
}
}
}