@@ -30,15 +30,15 @@ public async Task<ServerResponse<TopResponse>> GetTop(TopType type, int count)
30
30
. AddToChain ( GetIdentifier ( ) )
31
31
. AddProperty ( new Property ( "type" , type . GetAttributeOfSelected < OriginalNameAttribute > ( ) . OriginalName ) )
32
32
. AddProperty ( new Property ( "count" , count ) ) ;
33
- return await Get < TopResponse > ( "/database/ getGJScores20.php" , query ) ;
33
+ return await Get < TopResponse > ( "/getGJScores20.php" , query ) ;
34
34
}
35
35
36
36
public async Task < ServerResponse < LevelPageResponse > > GetLevels ( GetLevelsQuery getLevelsQuery )
37
37
{
38
38
var query = new FlexibleQuery ( )
39
39
. AddToChain ( OnlineQuery . Default )
40
40
. AddToChain ( getLevelsQuery ) ;
41
- return await Get < LevelPageResponse > ( "/database/ getGJLevels21.php" , query ) ;
41
+ return await Get < LevelPageResponse > ( "/getGJLevels21.php" , query ) ;
42
42
}
43
43
44
44
public async Task < ServerResponse < LevelPageResponse > > GetFeatureLevels ( int page )
@@ -58,7 +58,7 @@ public async Task<ServerResponse<LoginResponse>> Login(string username, string p
58
58
. AddProperty ( new Property ( "password" , password ) )
59
59
. AddProperty ( new Property ( "sID" , 76561198946149263 ) )
60
60
. AddProperty ( new Property ( "secret" , "Wmfv3899gc9" ) ) ;
61
- return await Get < LoginResponse > ( "/database/ accounts/loginGJAccount.php" , query ) ;
61
+ return await Get < LoginResponse > ( "/accounts/loginGJAccount.php" , query ) ;
62
62
}
63
63
64
64
public async Task < ServerResponse < AccountCommentPageResponse > > GetAccountComments ( int accountId , int page )
@@ -68,7 +68,7 @@ public async Task<ServerResponse<AccountCommentPageResponse>> GetAccountComments
68
68
. AddProperty ( new Property ( "accountID" , accountId ) )
69
69
. AddProperty ( new Property ( "page" , page ) )
70
70
. AddProperty ( new Property ( "total" , 0 ) ) ;
71
- return await Get < AccountCommentPageResponse > ( "/database/ getGJAccountComments20.php" , query ) ;
71
+ return await Get < AccountCommentPageResponse > ( "/getGJAccountComments20.php" , query ) ;
72
72
}
73
73
74
74
public async Task < ServerResponse < UserResponse > > GetUserByName ( string name )
@@ -78,7 +78,7 @@ public async Task<ServerResponse<UserResponse>> GetUserByName(string name)
78
78
. AddProperty ( new Property ( "str" , name ) )
79
79
. AddProperty ( new Property ( "total" , 0 ) )
80
80
. AddProperty ( new Property ( "page" , 0 ) ) ;
81
- return await Get < UserResponse > ( "/database/ getGJUsers20.php" , query ) ;
81
+ return await Get < UserResponse > ( "/getGJUsers20.php" , query ) ;
82
82
}
83
83
84
84
public async Task < ServerResponse < LevelResponse > > DownloadLevel ( int id )
@@ -88,7 +88,7 @@ public async Task<ServerResponse<LevelResponse>> DownloadLevel(int id)
88
88
. AddProperty ( new Property ( "levelID" , id ) )
89
89
. AddProperty ( new Property ( "inc" , 0 ) )
90
90
. AddProperty ( new Property ( "extras" , 0 ) ) ;
91
- return await Get < LevelResponse > ( "/database/ downloadGJLevel22.php" , query ) ;
91
+ return await Get < LevelResponse > ( "/downloadGJLevel22.php" , query ) ;
92
92
}
93
93
94
94
public async Task < ServerResponse < AccountInfoResponse > > GetAccountInfo ( int accountId )
@@ -97,7 +97,7 @@ public async Task<ServerResponse<AccountInfoResponse>> GetAccountInfo(int accoun
97
97
. AddToChain ( OnlineQuery . Default )
98
98
. AddToChain ( GetIdentifier ( ) )
99
99
. AddProperty ( new Property ( "targetAccountID" , accountId ) ) ;
100
- return await Get < AccountInfoResponse > ( "/database/ getGJUserInfo20.php" , query ) ;
100
+ return await Get < AccountInfoResponse > ( "/getGJUserInfo20.php" , query ) ;
101
101
}
102
102
103
103
public async Task < ServerResponse < LevelPageResponse > > GetMyLevels ( PasswordQuery account , int userId , int page )
@@ -110,7 +110,7 @@ public async Task<ServerResponse<LevelPageResponse>> GetMyLevels(PasswordQuery a
110
110
QueryString = userId . ToString ( ) ,
111
111
Page = page
112
112
} ) ;
113
- return await Get < LevelPageResponse > ( "/database/ getGJLevels21.php" , query ) ;
113
+ return await Get < LevelPageResponse > ( "/getGJLevels21.php" , query ) ;
114
114
}
115
115
116
116
private async Task < ServerResponse < T > > Get < T > ( string path , IQuery query )
0 commit comments