Ejemplo n.º 1
0
 static void Main(string[] args)
 {
     Console.WriteLine("Hello World!");
     ulong profileId = 2429129807113296;
     var   api       = new ScoreSaberAPI(new HttpClient());
     var   task      = api.GetUserData(profileId).ConfigureAwait(true);
     var   userInfo  = task.GetAwaiter().GetResult();
 }
Ejemplo n.º 2
0
        public override bool OnStartJob(JobParameters @params)
        {
            Console.WriteLine("UpdateService starting!");
            var client = new HttpClient();

            api = new ScoreSaberAPI(client);
            ulong val = (ulong)@params.Extras.GetLong("UserID");

            Task.Run(() => CreateWidget(this, val));
            return(true);
        }