private void button12_Click(object sender, EventArgs e) { var req = new WebServiceRequest(); req.Identification = new Identification(); req.Identification.UserName = textBoxUser.Text; req.Identification.PasswordKey = RadioTimeWebServiceHelper.HashMD5(textBoxPasswd.Text); propertyGrid1.SelectedObject = websrv.Account_UserAuthenticate(req); }
public RadioTimePluginGUI() { GetID = GetWindowId(); _setting.Load(); Settings.Instance = _setting; iden.UserName = _setting.User; iden.PasswordKey = RadioTimeWebServiceHelper.HashMD5(_setting.Password); iden.PartnerId = "MediaPortal"; iden.PartnerKey = "NVNxA8N$6VD1"; grabber.Settings.User = _setting.User; grabber.Settings.Password = _setting.Password; grabber.Settings.PartnerId = _setting.PartnerId; }
// Tuner_Tune example private void button9_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count > 0) { var req = new TuneRequest(); //int i = 0; req.StationId = ((RadioTimeOutline)listView1.SelectedItems[0].Tag).StationIdAsInt; req.Identification = new Identification(); req.Identification.UserName = textBoxUser.Text; req.Identification.PasswordKey = RadioTimeWebServiceHelper.HashMD5(textBoxPasswd.Text); propertyGrid1.SelectedObject = websrv.Tuner_Tune(req); MessageBox.Show("Test"); } }
private void button8_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count > 0) { try { var req = new FavoriteFolderUpdateRequest(); var i = 0; int.TryParse(((RadioTimeOutline)listView1.SelectedItems[0].Tag).StationId, out i); req.ItemIds = new int[] { i }; req.Identification = new Identification(); req.Identification.UserName = textBoxUser.Text; req.Identification.PasswordKey = RadioTimeWebServiceHelper.HashMD5(textBoxPasswd.Text); propertyGrid1.SelectedObject = websrv.Favorite_StationListAdd(req); } catch (SoapException ex) { MessageBox.Show(ex.Message); } } }