-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bfd05d6
commit 9e08fc7
Showing
9 changed files
with
136 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ headers { | |
session_id: e04d2e05 | ||
env: prod | ||
app-key: android64 | ||
user-agent: Mozilla/5.0 BiliDroid/7.72.0 ([email protected]) os/android model/Nexus mobi_app/android build/7720200 channel/yingyongbao innerVer/7720210 osVer/10 network/2 | ||
user-agent: {{user-agent}} | ||
x-bili-trace-id: 0564afa825e0e1ec59164fe59367755a:59164fe59367755a:0:0 | ||
x-bili-aurora-eid: UlAAQFkMBVkH | ||
x-bili-mid: {{mid}} | ||
|
29 changes: 29 additions & 0 deletions
29
src/Ray.BiliBiliTool.Agent/BiliBiliAgent/Dtos/BaseAppRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
namespace Ray.BiliBiliTool.Agent.BiliBiliAgent.Dtos; | ||
|
||
public class BaseAppRequest | ||
{ | ||
// public string access_key { get; set; } | ||
// public string appkey { get; set; } | ||
|
||
public string build { get; } = "7720200"; | ||
|
||
public string c_locale { get; } = "zh_CN"; | ||
|
||
public string channel { get; } = Constants.Channel; | ||
|
||
public int disable_rcmd { get; } = 0; | ||
|
||
public string from_spmid { get; } = "united.player-video-detail.player.continue"; | ||
|
||
public string mobi_app { get; } = "android"; | ||
|
||
public string platform { get; } = "android"; | ||
|
||
public string s_locale { get; } = "zh_CN"; | ||
|
||
public string statistics { get; } = "{\"appId\":1,\"platform\":3,\"version\":\"7.72.0\",\"abtest\":\"\"}"; | ||
|
||
// public long ts { get; set; } | ||
|
||
public string sign { get; set; } | ||
} |
18 changes: 18 additions & 0 deletions
18
src/Ray.BiliBiliTool.Agent/BiliBiliAgent/Dtos/VipTask/CompleteOgvWatchRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
namespace Ray.BiliBiliTool.Agent.BiliBiliAgent.Dtos.VipTask; | ||
|
||
public class CompleteOgvWatchRequest: BaseAppRequest | ||
{ | ||
public CompleteOgvWatchRequest(long taskId, string token) | ||
{ | ||
task_id = taskId; | ||
this.token = token; | ||
} | ||
|
||
public long task_id { get; set; } | ||
|
||
public string token { get; set; } | ||
|
||
public string task_sign { get; set; } | ||
|
||
public long timestamp { get; set; } | ||
} |
12 changes: 12 additions & 0 deletions
12
src/Ray.BiliBiliTool.Agent/BiliBiliAgent/Dtos/VipTask/StartOgvWatchRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace Ray.BiliBiliTool.Agent.BiliBiliAgent.Dtos.VipTask; | ||
|
||
public class StartOgvWatchRequest: BaseAppRequest | ||
{ | ||
public long ep_id { get; } = 328482; | ||
|
||
public long season_id { get; } = 12548; | ||
|
||
public string Activity_code { get; } = ""; | ||
|
||
public string spmid { get; } = "united.player-video-detail.0.0"; | ||
} |
12 changes: 12 additions & 0 deletions
12
src/Ray.BiliBiliTool.Agent/BiliBiliAgent/Dtos/VipTask/StartOgvWatchResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace Ray.BiliBiliTool.Agent.BiliBiliAgent.Dtos.VipTask; | ||
|
||
public class StartOgvWatchResponse | ||
{ | ||
public string closeType { get; set; } | ||
|
||
public string showTime { get; set; } | ||
|
||
public long task_id { get; set; } | ||
|
||
public string token { get; set; } | ||
} |
35 changes: 14 additions & 21 deletions
35
src/Ray.BiliBiliTool.Agent/BiliBiliAgent/Dtos/VipTask/ViewRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,25 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
namespace Ray.BiliBiliTool.Agent.BiliBiliAgent.Dtos.VipTask; | ||
|
||
namespace Ray.BiliBiliTool.Agent.BiliBiliAgent.Dtos.VipTask | ||
public class ViewRequest | ||
{ | ||
public class ViewRequest | ||
public ViewRequest(string position) | ||
{ | ||
public ViewRequest(string position) | ||
{ | ||
this.position=position; | ||
} | ||
this.position=position; | ||
} | ||
|
||
public string position { get; set; } | ||
public string position { get; } | ||
|
||
public string c_locale { get; set; } = "zh_CN"; | ||
public string c_locale { get; } = "zh_CN"; | ||
|
||
public string channel { get; set; } = "html5_search_baidu"; | ||
public string channel { get; } = Constants.Channel; | ||
|
||
public int disable_rcmd { get; set; } = 0; | ||
public int disable_rcmd { get; } = 0; | ||
|
||
public string mobi_app { get; set; } = "android"; | ||
public string mobi_app { get; } = "android"; | ||
|
||
public string platform { get; set; } = "android"; | ||
public string platform { get; } = "android"; | ||
|
||
public string s_locale { get; set; } = "zh_CN"; | ||
public string s_locale { get; } = "zh_CN"; | ||
|
||
public string statistics { get; set; } = "{\"appId\":1,\"platform\":3,\"version\":\"6.85.0\",\"abtest\":\"\"}"; | ||
} | ||
} | ||
public string statistics { get; } = "{\"appId\":1,\"platform\":3,\"version\":\"6.85.0\",\"abtest\":\"\"}"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Ray.BiliBiliTool.Agent; | ||
|
||
public static class Constants | ||
{ | ||
public const string Channel = "yingyongbao"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters