Exemple #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            // Get our button from the layout resource,
            // and attach an event to it
            Button button = FindViewById<Button>(Resource.Id.MyButton);

            button.Click += async delegate
                {
                    var cw = new CoderwallContext();
                    var profile = await cw.GetProfileAsync("prashantvc");

                    button.Text = string.Format("Username: {0}", profile.name);
                };
        }
Exemple #2
0
	    private async void GetProfile()
	    {
	        var cw = new CoderwallContext();
	        var profile = await cw.GetProfileAsync("prashantvc");
	        Console.WriteLine(profile);
	    }