Sign In Register

How can we help you today?

Start a new topic

ListChallengeRequest ISSUED and RECEIVED states

According to the documentation a challenge has the status ISSUED or RECEIVED depending on the player that executes the request:


ISSUED : The challenge has been issued by the current player and is waiting to be accepted.

RECEIVED : The challenge has been issued to the current player and is waiting to be accepted.


However, whenever I try it, the state is always ISSUED no matter which player I use to execute the request.


This is the code I'm executing:

{

 "@class": ".ListChallengeRequest",

 "entryCount": 5,

 "offset": 0,

 "state": "",

 "states": 

  ["WAITING", "RUNNING", "ISSUED", "RECEIVED", "COMPLETE", "DECLINED"

 ]

}


Any idea what could be wrong here?


1 person has this question

As Conny wrote, it's REALLY confusing. I spent hours looking for why ListChallengeRequest().SetState("ISSUED") returned ZERO results. But it turns out you need to use "RECEIVED" even though the actual state on the Challenge (in the Database) is ISSUED. 

This still works the same way. I make a PRIVATE CreateChallengeRequest.

And then to find the challenge you have to make a ListChallengeRequest for RECEIVED, but you only get ISSUED challenges in the response.


Bug?


1 person likes this

Hi Patrick, it's a PRIVATE challenge.

Hi Jeffry, 

Are these PRIVATE or PUBLIC challenges? 

Best Regards, Patrick. 

Login to post a comment