Skip to content

Commit e58b66b

Browse files
author
蒋天乐
committed
添加项目文件。
1 parent 6674fc8 commit e58b66b

File tree

111 files changed

+10162
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+10162
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ mono_crash.*
2121
[Dd]ebugPublic/
2222
[Rr]elease/
2323
[Rr]eleases/
24+
.vshistory/
2425
x64/
2526
x86/
2627
[Ww][Ii][Nn]32/

JavBusDownloader.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.7.34221.43
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JavBusDownloader", "JavBusDownloader\JavBusDownloader.csproj", "{BF9008E2-CF78-4268-A70A-2D7A8514A50A}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{BF9008E2-CF78-4268-A70A-2D7A8514A50A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{BF9008E2-CF78-4268-A70A-2D7A8514A50A}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{BF9008E2-CF78-4268-A70A-2D7A8514A50A}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{BF9008E2-CF78-4268-A70A-2D7A8514A50A}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {7ED76457-EDD7-4412-B48B-3261D0A6EB5B}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
using System.Collections.Generic;
2+
using Data;
3+
4+
namespace JavBusDownloader
5+
{
6+
static List<Queue<ObjectBottle>> list_PLC = new List<Queue<ObjectBottle>>(80);
7+
8+
9+
10+
11+
12+
class Movies
13+
{
14+
int state = 0; // -1:失败 0:加载数据 1:加载种子 1:重试中 2:加载成功
15+
string date = "2024-04-27";
16+
string id = "BDST-012";
17+
string img = "https://www.javbus.com/pics/thumb/aerq.jpg";
18+
string[] tags = { };
19+
string title = "完全引退 AV女優、最後の1日。三上悠亜ラストセックス";
20+
MovieData movieData = null;
21+
Magnet[] magnets = { };
22+
}
23+
24+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace JavBusDownloader
8+
{
9+
internal class Class1
10+
{
11+
}
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace JavBusDownloader
8+
{
9+
internal class Data
10+
{
11+
}
12+
}
Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
using System.Globalization;
2+
using Newtonsoft.Json;
3+
using Newtonsoft.Json.Converters;
4+
5+
namespace Data
6+
{
7+
public partial class MovieData
8+
{
9+
[JsonProperty("date")]
10+
public string Date { get; set; }
11+
12+
[JsonProperty("director")]
13+
public Director Director { get; set; }
14+
15+
[JsonProperty("genres")]
16+
public Genre[] Genres { get; set; }
17+
18+
[JsonProperty("gid")]
19+
public string Gid { get; set; }
20+
21+
[JsonProperty("id")]
22+
public string Id { get; set; }
23+
24+
[JsonProperty("imageSize")]
25+
public ImageSize ImageSize { get; set; }
26+
27+
[JsonProperty("img")]
28+
public string Img { get; set; }
29+
30+
[JsonProperty("producer")]
31+
public Producer Producer { get; set; }
32+
33+
[JsonProperty("publisher")]
34+
public Publisher Publisher { get; set; }
35+
36+
[JsonProperty("samples")]
37+
public Sample[] Samples { get; set; }
38+
39+
[JsonProperty("series")]
40+
public object Series { get; set; }
41+
42+
[JsonProperty("stars")]
43+
public Star[] Stars { get; set; }
44+
45+
[JsonProperty("title")]
46+
public string Title { get; set; }
47+
48+
[JsonProperty("uc")]
49+
public string Uc { get; set; }
50+
51+
[JsonProperty("videoLength")]
52+
public long VideoLength { get; set; }
53+
}
54+
55+
public partial class Director
56+
{
57+
[JsonProperty("id")]
58+
public string Id { get; set; }
59+
60+
[JsonProperty("name")]
61+
public string Name { get; set; }
62+
}
63+
64+
public partial class Genre
65+
{
66+
[JsonProperty("id")]
67+
public string Id { get; set; }
68+
69+
[JsonProperty("name")]
70+
public string Name { get; set; }
71+
}
72+
73+
public partial class ImageSize
74+
{
75+
[JsonProperty("height")]
76+
public long Height { get; set; }
77+
78+
[JsonProperty("width")]
79+
public long Width { get; set; }
80+
}
81+
82+
public partial class Producer
83+
{
84+
[JsonProperty("id")]
85+
public string Id { get; set; }
86+
87+
[JsonProperty("name")]
88+
public string Name { get; set; }
89+
}
90+
91+
public partial class Publisher
92+
{
93+
[JsonProperty("id")]
94+
public string Id { get; set; }
95+
96+
[JsonProperty("name")]
97+
public string Name { get; set; }
98+
}
99+
100+
public partial class Sample
101+
{
102+
[JsonProperty("alt")]
103+
public string Alt { get; set; }
104+
105+
[JsonProperty("id")]
106+
public string Id { get; set; }
107+
108+
[JsonProperty("src")]
109+
public string Src { get; set; }
110+
111+
[JsonProperty("thumbnail")]
112+
public string Thumbnail { get; set; }
113+
}
114+
115+
public partial class Star
116+
{
117+
[JsonProperty("id", NullValueHandling = NullValueHandling.Ignore)]
118+
public string Id { get; set; }
119+
120+
[JsonProperty("name", NullValueHandling = NullValueHandling.Ignore)]
121+
public string Name { get; set; }
122+
}
123+
124+
public partial class MovieData
125+
{
126+
public static MovieData FromJson(string json) => JsonConvert.DeserializeObject<MovieData>(json, Data.Converter.Settings);
127+
}
128+
129+
public static class Serialize
130+
{
131+
public static string ToJson(this MovieData self) => JsonConvert.SerializeObject(self, Data.Converter.Settings);
132+
}
133+
134+
internal static class Converter
135+
{
136+
public static readonly JsonSerializerSettings Settings = new JsonSerializerSettings
137+
{
138+
MetadataPropertyHandling = MetadataPropertyHandling.Ignore,
139+
DateParseHandling = DateParseHandling.None,
140+
Converters =
141+
{
142+
new IsoDateTimeConverter { DateTimeStyles = DateTimeStyles.AssumeUniversal }
143+
},
144+
};
145+
}
146+
}
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
// var movieData = MovieData.FromJson(jsonString);
2+
using System.Globalization;
3+
using Newtonsoft.Json;
4+
using Newtonsoft.Json.Converters;
5+
using J = Newtonsoft.Json.JsonPropertyAttribute;
6+
using N = Newtonsoft.Json.NullValueHandling;
7+
8+
namespace Data
9+
{
10+
public partial class MovieData
11+
{
12+
[J("date")] public string Date { get; set; }
13+
[J("director")] public Director Director { get; set; }
14+
[J("genres")] public Genre[] Genres { get; set; }
15+
[J("gid")] public string Gid { get; set; }
16+
[J("id")] public string Id { get; set; }
17+
[J("imageSize")] public ImageSize ImageSize { get; set; }
18+
[J("img")] public string Img { get; set; }
19+
[J("producer")] public Producer Producer { get; set; }
20+
[J("publisher")] public Publisher Publisher { get; set; }
21+
[J("samples")] public Sample[] Samples { get; set; }
22+
[J("series")] public object Series { get; set; }
23+
[J("stars")] public Star[] Stars { get; set; }
24+
[J("title")] public string Title { get; set; }
25+
[J("uc")] public string Uc { get; set; }
26+
[J("videoLength")] public long VideoLength { get; set; }
27+
}
28+
29+
public partial class Director
30+
{
31+
[J("id")] public string Id { get; set; }
32+
[J("name")] public string Name { get; set; }
33+
}
34+
35+
public partial class Genre
36+
{
37+
[J("id")] public string Id { get; set; }
38+
[J("name")] public string Name { get; set; }
39+
}
40+
41+
public partial class ImageSize
42+
{
43+
[J("height")] public long Height { get; set; }
44+
[J("width")] public long Width { get; set; }
45+
}
46+
47+
public partial class Producer
48+
{
49+
[J("id")] public string Id { get; set; }
50+
[J("name")] public string Name { get; set; }
51+
}
52+
53+
public partial class Publisher
54+
{
55+
[J("id")] public string Id { get; set; }
56+
[J("name")] public string Name { get; set; }
57+
}
58+
59+
public partial class Sample
60+
{
61+
[J("alt")] public string Alt { get; set; }
62+
[J("id")] public string Id { get; set; }
63+
[J("src")] public string Src { get; set; }
64+
[J("thumbnail")] public string Thumbnail { get; set; }
65+
}
66+
67+
public partial class Star
68+
{
69+
[J("id", NullValueHandling = N.Ignore)] public string Id { get; set; }
70+
[J("name", NullValueHandling = N.Ignore)] public string Name { get; set; }
71+
}
72+
73+
public partial class MovieData
74+
{
75+
public static MovieData FromJson(string json) => JsonConvert.DeserializeObject<MovieData>(json, Data.Converter.Settings);
76+
}
77+
78+
public static class Serialize
79+
{
80+
public static string ToJson(this MovieData self) => JsonConvert.SerializeObject(self, Data.Converter.Settings);
81+
}
82+
83+
internal static class Converter
84+
{
85+
public static readonly JsonSerializerSettings Settings = new JsonSerializerSettings
86+
{
87+
MetadataPropertyHandling = MetadataPropertyHandling.Ignore,
88+
DateParseHandling = DateParseHandling.None,
89+
Converters =
90+
{
91+
new IsoDateTimeConverter { DateTimeStyles = DateTimeStyles.AssumeUniversal }
92+
},
93+
};
94+
}
95+
}

0 commit comments

Comments
 (0)