mirror of
https://github.com/hama3254/Crunchyroll-Downloader-v3.0.git
synced 2024-11-15 04:35:06 +01:00
e195c7d9c8
clean-up 'Legacy code'
122 lines
3.2 KiB
VB.net
122 lines
3.2 KiB
VB.net
Public Class CRD_Classes
|
|
|
|
End Class
|
|
|
|
#Region "funimation"
|
|
|
|
|
|
Public Class FunimationOverview
|
|
Public ID As String
|
|
Public Title As String
|
|
Public Slug As String
|
|
Public Sub New(ByVal Slug As String, ByVal ID As String, ByVal Title As String)
|
|
Me.ID = ID
|
|
Me.Title = Title
|
|
Me.Slug = Slug
|
|
End Sub
|
|
|
|
Public Overrides Function ToString() As String
|
|
Return String.Format("{0}, {1}, {2}", Me.Slug, Me.ID, Me.Title)
|
|
End Function
|
|
End Class
|
|
|
|
Public Class FunimationSubs
|
|
Public LangugageCode As String
|
|
Public Url As String
|
|
Public Format As String
|
|
Public Sub New(ByVal LangugageCode As String, ByVal Format As String, ByVal Url As String)
|
|
Me.Url = Url
|
|
Me.LangugageCode = LangugageCode
|
|
Me.Format = Format
|
|
End Sub
|
|
|
|
Public Overrides Function ToString() As String
|
|
Return String.Format("{0}, {1}, {2}", Me.LangugageCode, Me.Format, Me.Url)
|
|
End Function
|
|
End Class
|
|
|
|
Public Class FunimationStream
|
|
Public audioLanguage As String
|
|
Public Url As String
|
|
Public version As String
|
|
Public Primary As Boolean
|
|
Public Sub New(ByVal audioLanguage As String, ByVal version As String, ByVal Url As String, ByVal Primary As Boolean)
|
|
Me.Primary = Primary
|
|
Me.Url = Url
|
|
Me.audioLanguage = audioLanguage
|
|
Me.version = version
|
|
End Sub
|
|
|
|
Public Overrides Function ToString() As String
|
|
Return String.Format("{0}, {1}, {2}", Me.audioLanguage, Me.version, Me.Url)
|
|
End Function
|
|
End Class
|
|
#End Region
|
|
#Region "CR"
|
|
Public Class CR_Beta_Stream
|
|
'Public audioLanguage As String
|
|
Public Url As String
|
|
Public subLang As String
|
|
Public Format As String
|
|
'ByVal audioLanguage As String,
|
|
Public Sub New(ByVal subLang As String, ByVal Format As String, ByVal Url As String)
|
|
Me.subLang = subLang
|
|
Me.Url = Url
|
|
'Me.audioLanguage = audioLanguage
|
|
Me.Format = Format
|
|
End Sub
|
|
'Me.audioLanguage,
|
|
Public Overrides Function ToString() As String
|
|
Return String.Format("{0}, {1}, {2}", Me.subLang, Me.Format, Me.Url)
|
|
End Function
|
|
|
|
End Class
|
|
Public Class UrlJson
|
|
|
|
Public Url As String
|
|
Public Content As String
|
|
Public Sub New(ByVal Url As String, ByVal Content As String)
|
|
Me.Url = Url
|
|
Me.Content = Content
|
|
|
|
End Sub
|
|
|
|
Public Overrides Function ToString() As String
|
|
Return String.Format("{0}, {1}", Me.Url, Me.Content)
|
|
End Function
|
|
End Class
|
|
|
|
|
|
#End Region
|
|
|
|
|
|
Public Class ServerResponse
|
|
|
|
Public Type As String
|
|
Public Content As String
|
|
Public Sub New(ByVal Content As String, ByVal Type As String)
|
|
Me.Content = Content
|
|
Me.Type = Type
|
|
|
|
End Sub
|
|
|
|
Public Overrides Function ToString() As String
|
|
Return String.Format("{0}, {1}", Me.Content, Me.Type)
|
|
End Function
|
|
End Class
|
|
|
|
Public Class NameValuePair
|
|
|
|
Public Name As String
|
|
Public CR_Value As String
|
|
Public FM_Value As String
|
|
Public Sub New(ByVal Name As String, ByVal CR_Value As String, ByVal FM_Value As String)
|
|
Me.Name = Name
|
|
Me.CR_Value = CR_Value
|
|
Me.FM_Value = FM_Value
|
|
End Sub
|
|
|
|
Public Overrides Function ToString() As String
|
|
Return String.Format("{0}, {1}", Me.Name, Me.CR_Value, Me.FM_Value)
|
|
End Function
|
|
End Class |