Hey, ich habe solch einen langen JSon-String:
Spoiler anzeigen
und hatte dazu folgende Strukturen (Die Benamungen sind etwas unpassend):
aber die Werte kommen einfach nicht rein..
Ich versuche Sie so einzusetzen:
Kann mir einer sagen, was bei den Strukturen fehlt bzw noch ergänz werden müsste?
{
"playerCredentials": {
"observerEncryptionKey": "0hJToxCw5TdRxoaNf1bP5Yi2ibN2jpJS",
"dataVersion": 0,
"playerId": 28125055,
"serverPort": 0,
"observer": true,
"summonerId": 0,
"championId": 0,
"observerServerIp": "95.172.65.26",
"gameId": 1425324149,
"observerServerPort": 8088,
"lastSelectedSkinIndex": 0
},
"dataVersion": 0,
"gameName": "match-1425324149",
"reconnectDelay": 0,
"game": {
"practiceGameRewardsDisabledReasons": {
"array": []
},
"glmSecurePort": 0,
"queuePosition": 0,
"playerChampionSelections": {
"array": [
{
"spell1Id": 4,
"spell2Id": 14,
"championId": 98,
"summonerInternalName": "pokingoak",
"selectedSkinIndex": 0,
"dataVersion": 0
},
{
"spell1Id": 7,
"spell2Id": 4,
"championId": 104,
"summonerInternalName": "sexdwarf",
"selectedSkinIndex": 5,
"dataVersion": 0
},
{
"spell1Id": 4,
"spell2Id": 14,
"championId": 25,
"summonerInternalName": "episnoyz",
"selectedSkinIndex": 0,
"dataVersion": 0
},
{
"spell1Id": 4,
"spell2Id": 3,
"championId": 412,
"summonerInternalName": "audragorlen8834",
"selectedSkinIndex": 0,
"dataVersion": 0
},
{
"spell1Id": 4,
"spell2Id": 12,
"championId": 62,
"summonerInternalName": "firdra",
"selectedSkinIndex": 0,
"dataVersion": 0
},
{
"spell1Id": 4,
"spell2Id": 14,
"championId": 103,
"summonerInternalName": "zoidberg",
"selectedSkinIndex": 0,
"dataVersion": 0
},
{
"spell1Id": 4,
"spell2Id": 11,
"championId": 5,
"summonerInternalName": "maufait",
"selectedSkinIndex": 0,
"dataVersion": 0
},
{
"spell1Id": 4,
"spell2Id": 7,
"championId": 236,
"summonerInternalName": "slothwithahat",
"selectedSkinIndex": 0,
"dataVersion": 0
},
{
"spell1Id": 4,
"spell2Id": 11,
"championId": 254,
"summonerInternalName": "zirnis",
"selectedSkinIndex": 0,
"dataVersion": 0
},
{
"spell1Id": 4,
"spell2Id": 7,
"championId": 61,
"summonerInternalName": "bl1zz",
"selectedSkinIndex": 3,
"dataVersion": 0
}
]
}
"playerCredentials": {
"observerEncryptionKey": "0hJToxCw5TdRxoaNf1bP5Yi2ibN2jpJS",
"dataVersion": 0,
"playerId": 28125055,
"serverPort": 0,
"observer": true,
"summonerId": 0,
"championId": 0,
"observerServerIp": "95.172.65.26",
"gameId": 1425324149,
"observerServerPort": 8088,
"lastSelectedSkinIndex": 0
},
"dataVersion": 0,
"gameName": "match-1425324149",
"reconnectDelay": 0,
"game": {
"practiceGameRewardsDisabledReasons": {
"array": []
},
"glmSecurePort": 0,
"queuePosition": 0,
"playerChampionSelections": {
"array": [
{
"spell1Id": 4,
"spell2Id": 14,
"championId": 98,
"summonerInternalName": "pokingoak",
"selectedSkinIndex": 0,
"dataVersion": 0
},
{
"spell1Id": 7,
"spell2Id": 4,
"championId": 104,
"summonerInternalName": "sexdwarf",
"selectedSkinIndex": 5,
"dataVersion": 0
},
{
"spell1Id": 4,
"spell2Id": 14,
"championId": 25,
"summonerInternalName": "episnoyz",
"selectedSkinIndex": 0,
"dataVersion": 0
},
{
"spell1Id": 4,
"spell2Id": 3,
"championId": 412,
"summonerInternalName": "audragorlen8834",
"selectedSkinIndex": 0,
"dataVersion": 0
},
{
"spell1Id": 4,
"spell2Id": 12,
"championId": 62,
"summonerInternalName": "firdra",
"selectedSkinIndex": 0,
"dataVersion": 0
},
{
"spell1Id": 4,
"spell2Id": 14,
"championId": 103,
"summonerInternalName": "zoidberg",
"selectedSkinIndex": 0,
"dataVersion": 0
},
{
"spell1Id": 4,
"spell2Id": 11,
"championId": 5,
"summonerInternalName": "maufait",
"selectedSkinIndex": 0,
"dataVersion": 0
},
{
"spell1Id": 4,
"spell2Id": 7,
"championId": 236,
"summonerInternalName": "slothwithahat",
"selectedSkinIndex": 0,
"dataVersion": 0
},
{
"spell1Id": 4,
"spell2Id": 11,
"championId": 254,
"summonerInternalName": "zirnis",
"selectedSkinIndex": 0,
"dataVersion": 0
},
{
"spell1Id": 4,
"spell2Id": 7,
"championId": 61,
"summonerInternalName": "bl1zz",
"selectedSkinIndex": 3,
"dataVersion": 0
}
]
}
und hatte dazu folgende Strukturen (Die Benamungen sind etwas unpassend):
VB.NET-Quellcode
- Public Structure SpectateGame
- Public playerCredentials As SpielerDaten
- Public dataVersion As Integer
- Public gameName As String
- Public reconnectDelay As Integer
- Public game As GameInformation
- End Structure
- Public Structure SpielerDaten
- Public observerEncryptionKey As String
- Public dataVersion As Integer
- Public playerId As Integer
- Public serverPort As Integer
- Public overserver As Boolean
- Public summonerId As Integer
- Public championId As Integer
- Public observerServerIp As String
- Public gameId As Integer
- Public overserverServerPort As Integer
- Public lastSelectedSkinIndex As Integer
- End Structure
- Public Structure GameInformation
- Public practiceGameRewardsDisabledReasons As Arr()
- Public glmSecurePort As Integer
- Public queuePosition As Integer
- Public playerChampionsSelections As AnotherArray()
- End Structure
- Public Structure AnotherArray
- Public spell1Id As Integer
- Public spell2Id As Integer
- Public championId As Integer
- Public summonerInternalName As String
- Public selectedSkinIndex As Integer
- Public dataVersion As Integer
- End Structure
- Public Structure Arr
- End Structure
aber die Werte kommen einfach nicht rein..
Ich versuche Sie so einzusetzen:
Kann mir einer sagen, was bei den Strukturen fehlt bzw noch ergänz werden müsste?