File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,6 +66,11 @@ public static class UrlBuilder
6666 /// </summary>
6767 private const string KeysPath = @"keys/{0}/" ;
6868
69+ /// <summary>
70+ /// Path for per-user lists
71+ /// </summary>
72+ private const string ListPath = @"list/{0}/{1}/{2}/" ;
73+
6974 /// <summary>
7075 /// Path for LSD pack downloads
7176 /// </summary>
@@ -396,10 +401,25 @@ public static string BuildDownloadsUrl()
396401 return sb . ToString ( ) ;
397402 }
398403
399- // TODO: Implement
400- public static string BuildListUrl ( )
404+ /// <summary>
405+ /// Build a /list/ path URL
406+ /// </summary>
407+ /// <param name="have">True to show "have" discs, false to show "miss" discs</param>
408+ /// <param name="username">Username to use</param>
409+ /// <param name="system">System for filtering</param>
410+ public static string BuildListUrl ( bool have ,
411+ string username ,
412+ RedumpSystem system )
401413 {
402- return string . Empty ;
414+ var sb = new StringBuilder ( ) ;
415+
416+ sb . Append ( SiteBaseUrl ) ;
417+
418+ string operation = have ? "have" : "miss" ;
419+ string systemName = system . ShortName ( ) ?? string . Empty ;
420+ sb . AppendFormat ( ListPath , operation , username , systemName ) ;
421+
422+ return sb . ToString ( ) ;
403423 }
404424
405425 /// <summary>
You can’t perform that action at this time.
0 commit comments