PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/Structures/BasicMovieNFO.vb

#
Visual Basic | 86 lines | 82 code | 4 blank | 0 comment | 0 complexity | 95274c8e0ec9b9ed5cabd5f6114f5b7e MD5 | raw file
 1
 2Public Structure str_BasicMovieNFO
 3    Dim title           As String
 4    Dim originaltitle   As String
 5    Dim sortorder       As String
 6    Dim MovieSet        As MovieSetInfo 
 7    Dim source          As String
 8    Dim year            As String
 9    Dim rating          As String
10    Dim votes           As String
11    Dim outline         As String
12    Dim plot            As String
13    Dim tagline         As String
14    Dim runtime         As String
15    Dim mpaa            As String
16    Dim genre           As String 
17    Dim tag             As List(Of String)  ' = New List(Of String)
18    Dim credits         As String
19    Dim director        As String
20    Dim stars           As String
21    Dim premiered       As String
22    Dim studio          As String
23    Dim trailer         As String
24    Dim playcount       As String
25    Dim lastplayed      As String
26    Dim imdbid          As String
27    Dim tmdbid          As String
28    Dim top250          As String
29    Dim filename        As String
30    Dim thumb           As String
31    Dim fanart          As String
32    Dim country         As String
33    Dim album           As String
34    Dim artist          As String
35    Dim track           As String
36    Dim showlink        As String
37    Dim usrrated        As String
38    Dim metascore       As String
39    Sub New(SetDefaults As Boolean) 'When called with new keyword & boolean constant SetDefault (either T or F), initialises all values to defaults to avoid having some variables left as 'nothing'
40        title           = ""
41        originaltitle   = ""
42        sortorder       = ""
43        MovieSet        = New MovieSetInfo 
44        source          = ""
45        year            = ""
46        rating          = ""
47        votes           = ""
48        outline         = ""
49        plot            = ""
50        tagline         = ""
51        runtime         = ""
52        mpaa            = ""
53        genre           = ""
54        tag             = New List(Of String)  ' = ""
55        credits         = ""
56        director        = ""
57        stars           = ""
58        premiered       = ""
59        studio          = ""
60        trailer         = ""
61        playcount       = ""
62        lastplayed      = ""
63        imdbid          = ""
64        tmdbid          = ""
65        top250          = ""
66        filename        = ""
67        thumb           = ""
68        fanart          = ""
69        country         = ""
70        album           = ""
71        artist          = ""
72        track           = ""
73        showlink        = ""
74        usrrated        = ""
75        metascore       = ""
76    End Sub
77
78    Sub ClearWatched()
79        playcount       = "0"
80    End Sub 
81
82    Sub SetWatched()
83        playcount       = "1"
84    End Sub 
85
86End Structure