Source/NFX/Security/CAPTCHA/PuzzleKeypad.cs
/// <summary>
/// Translates user action coordinates (i.e. screen touches or mouse clicks) into a string.
/// The coordinates must be supplied as a JSON array of json objects that have '{x: [int], y: [int]}' structure
/// </summary>
Translates user action coordinates  into a string.
The coordinates must be supplied as a JSON array of json objects that have '{x: [int], y: [int]}' structure
Translates user action coordinates into a string . The coordinates must be supplied as a JSON array of json objects that have ' { x : [ int ] y : [ int ] } ' structure
public string DecipherCoordinates(JSONDataArray coords, int? offsetX = null, int? offsetY = null)
      {
        return DecipherCoordinates(coords.Where(o=>o is JSONDataMap)
                                         .Cast<JSONDataMap>()
                                         .Select(jp=>new Point(jp["x"].AsInt(), jp["y"].AsInt())),
                                   offsetX, offsetY
                                  );
      }
public string DecipherCoordinates ( JSONDataArray coords , int ? offsetX = null , int ? offsetY = null ) { return DecipherCoordinates ( coords . Where ( o => o is JSONDataMap ) . Cast < JSONDataMap > ( ) . Select ( jp => new Point ( jp [ " " ] . AsInt ( ) , jp [ " " ] . AsInt ( ) ) ) , offsetX , offsetY ) ; }
Translates user action coordinates (i.e.
Translates user action coordinates ( i . e .
coords
JSONDataArray
offsetX
int?
offsetY
int?