[Release] epvpapi - .NET Library für elitepvpers

03/23/2016 16:35 Der-Eddy#76
Quote:
Originally Posted by Ethnobotaniker View Post
Schon mal vielen Dank, aber gibts noch irgendwo Tutorials zum einloggen?
Ich war schon auf dem Github Blog.
Eigentlich gibts doch ein passenden Wiki Eintrag dafür
[Only registered and activated users can see links. Click Here To Register...]

Code:
User mostey = new User("Mostey", 467410);
var session = new AuthenticatedSession<User>(mostey, "mySecretMd5Hash");
Mit dem session Objekt arbeitest du dann weiter
03/27/2016 14:53 sexualising#77
Wie kann man sich sein e*gold anzeigen lassen? :)
03/27/2016 15:02 Der-Eddy#78
Quote:
Originally Posted by sexualising View Post
Wie kann man sich sein e*gold anzeigen lassen? :)
Code:
{Session}.EliteGold
enthält die Anzahl an Elite*gold als int
03/27/2016 15:22 sexualising#79
Ah session.User.EliteGold
Vielen Dank! :)
06/11/2016 04:42 ​Exo#80
There's some bug I noticed.
Code:
public string GetUrl(uint pageIndex = 1)
        {
            return String.Format("http://www.elitepvpers.com/forum/{0}/{1}-{2}" + ((pageIndex > 1) ? "-" + pageIndex : "") + ".html",
                    Section.Shortname, ID, InitialPost.Title.UrlEscape());
        }
I noticed that when the thread title is ending with a special character then a number this will method will create a conflict with the actual thread and the number of page in that thread. Usually there's an "-a" at the end of the urls with that pattern.

Nothing will throw an exception but if you're targeting the actual thread you won't get the expected result cuz you will be returning a different page actually (unless the thread only contains one page)
06/11/2016 11:12 Mostey#81
Quote:
Originally Posted by ​Exo View Post
There's some bug I noticed.
Code:
public string GetUrl(uint pageIndex = 1)
        {
            return String.Format("http://www.elitepvpers.com/forum/{0}/{1}-{2}" + ((pageIndex > 1) ? "-" + pageIndex : "") + ".html",
                    Section.Shortname, ID, InitialPost.Title.UrlEscape());
        }
I noticed that when the thread title is ending with a special character then a number this will method will create a conflict with the actual thread and the number of page in that thread. Usually there's an "-a" at the end of the urls with that pattern.

Nothing will throw an exception but if you're targeting the actual thread you won't get the expected result cuz you will be returning a different page actually (unless the thread only contains one page)
Thank you for reporting this bug. This library needs some rework, are you interested in resolving this issue by yourself via GitHub?

Could you also provide an example for a thread whose title is ending with a special character?
06/11/2016 17:35 ​Exo#82
Quote:
Originally Posted by Mostey View Post
Thank you for reporting this bug. This library needs some rework, are you interested in resolving this issue by yourself via GitHub?

Could you also provide an example for a thread whose title is ending with a special character?
Yes sure!

Here [Only registered and activated users can see links. Click Here To Register...] & [Only registered and activated users can see links. Click Here To Register...]
06/11/2016 20:44 False#83
Quote:
Originally Posted by Mostey View Post
Thank you for reporting this bug. This library needs some rework, are you interested in resolving this issue by yourself via GitHub?

Could you also provide an example for a thread whose title is ending with a special character?
Hast dazu einen sehr sehr sehr simplen Merge Request/Pull Request bekommen :p
06/12/2016 10:43 Mostey#84
Quote:
Originally Posted by .ƒaℓsє. View Post
Hast dazu einen sehr sehr sehr simplen Merge Request/Pull Request bekommen :p
Danke, ist gemerged. :handsdown:
12/06/2016 15:18 C0RE'#85
Funktionieren BlackMarket Ratings bei euch?

Code:
label_tbm_positive.Text = CType(mySession.Profile.User.TBMProfile.Ratings.Positive, String)
12/06/2016 16:18 Shawak#86
Sollten sie, zeig doch mal bitte etwas mehr Code.
12/06/2016 18:15 C0RE'#87
Quote:
Originally Posted by Shawak View Post
Sollten sie, zeig doch mal bitte etwas mehr Code.
Habs jetzt in der API behoben:

In der Datei UserParser.cs Line: 355 steht folgendes:

Code:
var positiveRatingsNode = valueNode.SelectSingleNode("span[1]");
Target.TBMProfile.Ratings.Positive = (positiveRatingsNode != null) ? positiveRatingsNode.InnerText.To<uint>() : Target.TBMProfile.Ratings.Positive;
Das hat mir immer 0 zurückgegeben :confused:

Hab dann "span" durch "a" ersetzt:

Code:
var positiveRatingsNode = valueNode.SelectSingleNode("a[1]");
Target.TBMProfile.Ratings.Positive = (positiveRatingsNode != null) ? positiveRatingsNode.InnerText.To<uint>() : Target.TBMProfile.Ratings.Positive;
Dann hat's geklappt, Frag mich nicht woran das jetzt lag, dass er den span nicht finden konnte. Vielleicht weil drüber noch der a Tag ist?!


Code:
<dd><a href="http://www.elitepvpers.com/theblackmarket/ratings/5121922/positive/"><span class="green">6</span></a>/0/<span class="red">0</span></dd>
12/06/2016 22:47 Serraniel#88
PHP Code:
                lblPositiveCount.Text Api.GetInstance().User.TBMProfile.Ratings.Positive.ToString();
                
lblNetraulCount.Text Api.GetInstance().User.TBMProfile.Ratings.Neutral.ToString();
                
lblNegativeCount.Text Api.GetInstance().User.TBMProfile.Ratings.Negative.ToString(); 
Bei mir scheint das auch problemlos zu funktionieren mit der Api das richtig anzuzeigen:
[Only registered and activated users can see links. Click Here To Register...]

Sicher das du ne aktuelle hast?
12/07/2016 17:18 C0RE'#89
Quote:
Originally Posted by Serraniel View Post
Sicher das du ne aktuelle hast?
Ja hab's per NuGet gezogen... Ist ja auch egal so funktioniert es ja :rolleyes:
05/25/2017 19:30 ​Exo#90
This probably needs an update since Https got enforced.

EDIT: [Only registered and activated users can see links. Click Here To Register...]