diff --git a/.gitignore b/.gitignore index 10d4dc7..cd2946a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,256 +1,47 @@ -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. - -# User-specific files -*.suo -*.user -*.userosscache -*.sln.docstates - -# User-specific files (MonoDevelop/Xamarin Studio) -*.userprefs - -# Build results -[Dd]ebug/ -[Dd]ebugPublic/ -[Rr]elease/ -[Rr]eleases/ -x64/ -x86/ -bld/ -[Bb]in/ -[Oo]bj/ -[Ll]og/ - -# Visual Studio 2015 cache/options directory -.vs/ -# Uncomment if you have tasks that create the project's static files in wwwroot -#wwwroot/ - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* - -# NUNIT -*.VisualState.xml -TestResult.xml - -# Build Results of an ATL Project -[Dd]ebugPS/ -[Rr]eleasePS/ -dlldata.c - -# DNX -project.lock.json -project.fragment.lock.json -artifacts/ - -*_i.c -*_p.c -*_i.h -*.ilk -*.meta -*.obj -*.pch -*.pdb -*.pgc -*.pgd -*.rsp -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*.log -*.vspscc -*.vssscc -.builds -*.pidb -*.svclog -*.scc - -# Chutzpah Test files -_Chutzpah* - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opendb -*.opensdf -*.sdf -*.cachefile -*.VC.db -*.VC.VC.opendb - -# Visual Studio profiler -*.psess -*.vsp -*.vspx -*.sap - -# TFS 2012 Local Workspace -$tf/ - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper -*.DotSettings.user - -# JustCode is a .NET coding add-in -.JustCode - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# NCrunch -_NCrunch_* -.*crunch*.local.xml -nCrunchTemp_* - -# MightyMoose -*.mm.* -AutoTest.Net/ - -# Web workbench (sass) -.sass-cache/ - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.[Pp]ublish.xml -*.azurePubxml -# TODO: Comment the next line if you want to checkin your web deploy settings -# but database connection strings (with potential passwords) will be unencrypted -*.pubxml -*.publishproj - -# Microsoft Azure Web App publish settings. Comment the next line if you want to -# checkin your Azure Web App publish settings, but sensitive information contained -# in these scripts will be unencrypted -PublishScripts/ - -# NuGet Packages -*.nupkg -# The packages folder can be ignored because of Package Restore -**/packages/* -# except build/, which is used as an MSBuild target. -!**/packages/build/ -# Uncomment if necessary however generally it will be regenerated when needed -#!**/packages/repositories.config -# NuGet v3's project.json files produces more ignoreable files -*.nuget.props -*.nuget.targets - -# Microsoft Azure Build Output -csx/ -*.build.csdef - -# Microsoft Azure Emulator -ecf/ -rcf/ - -# Windows Store app package directories and files -AppPackages/ -BundleArtifacts/ -Package.StoreAssociation.xml -_pkginfo.txt - -# Visual Studio cache files -# files ending in .cache can be ignored -*.[Cc]ache -# but keep track of directories ending in .cache -!*.[Cc]ache/ - -# Others -ClientBin/ -~$* -*~ -*.dbmdl -*.dbproj.schemaview -*.pfx -*.publishsettings -node_modules/ -orleans.codegen.cs - -# Since there are multiple workflows, uncomment next line to ignore bower_components -# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) -#bower_components/ - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file -# to a newer Visual Studio version. Backup files are not needed, -# because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm - -# SQL Server files -*.mdf -*.ldf - -# Business Intelligence projects -*.rdl.data -*.bim.layout -*.bim_*.settings - -# Microsoft Fakes -FakesAssemblies/ - -# GhostDoc plugin setting file -*.GhostDoc.xml - -# Node.js Tools for Visual Studio -.ntvs_analysis.dat - -# Visual Studio 6 build log -*.plg - -# Visual Studio 6 workspace options file -*.opt - -# Visual Studio LightSwitch build output -**/*.HTMLClient/GeneratedArtifacts -**/*.DesktopClient/GeneratedArtifacts -**/*.DesktopClient/ModelManifest.xml -**/*.Server/GeneratedArtifacts -**/*.Server/ModelManifest.xml -_Pvt_Extensions - -# Paket dependency manager -.paket/paket.exe -paket-files/ - -# FAKE - F# Make -.fake/ - -# JetBrains Rider -.idea/ -*.sln.iml - -# CodeRush -.cr/ \ No newline at end of file +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# ========================= +# Operating System Files +# ========================= + +# OSX +# ========================= + +.DS_Store +.AppleDouble +.LSOverride + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk diff --git a/Data/Battle/BattleAction.cs b/Data/Battle/BattleAction.cs index fd6612b..27f2b0d 100644 --- a/Data/Battle/BattleAction.cs +++ b/Data/Battle/BattleAction.cs @@ -23,10 +23,10 @@ static BattleActionReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CilQT0dPUHJvdG9zL0RhdGEvQmF0dGxlL0JhdHRsZUFjdGlvbi5wcm90bxIW", - "UE9HT1Byb3Rvcy5EYXRhLkJhdHRsZRoqUE9HT1Byb3Rvcy9EYXRhL0JhdHRs", - "ZS9CYXR0bGVSZXN1bHRzLnByb3RvGi1QT0dPUHJvdG9zL0RhdGEvQmF0dGxl", - "L0JhdHRsZUFjdGlvblR5cGUucHJvdG8aLlBPR09Qcm90b3MvRGF0YS9CYXR0", - "bGUvQmF0dGxlUGFydGljaXBhbnQucHJvdG8ihQQKDEJhdHRsZUFjdGlvbhI2", + "UE9HT1Byb3Rvcy5EYXRhLkJhdHRsZRotUE9HT1Byb3Rvcy9EYXRhL0JhdHRs", + "ZS9CYXR0bGVBY3Rpb25UeXBlLnByb3RvGi5QT0dPUHJvdG9zL0RhdGEvQmF0", + "dGxlL0JhdHRsZVBhcnRpY2lwYW50LnByb3RvGipQT0dPUHJvdG9zL0RhdGEv", + "QmF0dGxlL0JhdHRsZVJlc3VsdHMucHJvdG8ihQQKDEJhdHRsZUFjdGlvbhI2", "CgRUeXBlGAEgASgOMiguUE9HT1Byb3Rvcy5EYXRhLkJhdHRsZS5CYXR0bGVB", "Y3Rpb25UeXBlEhcKD2FjdGlvbl9zdGFydF9tcxgCIAEoAxITCgtkdXJhdGlv", "bl9tcxgDIAEoBRIUCgxlbmVyZ3lfZGVsdGEYBSABKAUSFgoOYXR0YWNrZXJf", @@ -40,7 +40,7 @@ static BattleActionReflection() { "QmF0dGxlLkJhdHRsZVBhcnRpY2lwYW50EhkKEXRhcmdldF9wb2tlbW9uX2lk", "GA4gASgGYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::POGOProtos.Data.Battle.BattleResultsReflection.Descriptor, global::POGOProtos.Data.Battle.BattleActionTypeReflection.Descriptor, global::POGOProtos.Data.Battle.BattleParticipantReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::POGOProtos.Data.Battle.BattleActionTypeReflection.Descriptor, global::POGOProtos.Data.Battle.BattleParticipantReflection.Descriptor, global::POGOProtos.Data.Battle.BattleResultsReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Data.Battle.BattleAction), global::POGOProtos.Data.Battle.BattleAction.Parser, new[]{ "Type", "ActionStartMs", "DurationMs", "EnergyDelta", "AttackerIndex", "TargetIndex", "ActivePokemonId", "PlayerJoined", "BattleResults", "DamageWindowsStartTimestampMss", "DamageWindowsEndTimestampMss", "PlayerLeft", "TargetPokemonId" }, null, null, null) })); diff --git a/Data/Battle/BattleLog.cs b/Data/Battle/BattleLog.cs index bbdceea..2dd9389 100644 --- a/Data/Battle/BattleLog.cs +++ b/Data/Battle/BattleLog.cs @@ -23,10 +23,10 @@ static BattleLogReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CiZQT0dPUHJvdG9zL0RhdGEvQmF0dGxlL0JhdHRsZUxvZy5wcm90bxIWUE9H", - "T1Byb3Rvcy5EYXRhLkJhdHRsZRooUE9HT1Byb3Rvcy9EYXRhL0JhdHRsZS9C", - "YXR0bGVTdGF0ZS5wcm90bxonUE9HT1Byb3Rvcy9EYXRhL0JhdHRsZS9CYXR0", - "bGVUeXBlLnByb3RvGilQT0dPUHJvdG9zL0RhdGEvQmF0dGxlL0JhdHRsZUFj", - "dGlvbi5wcm90byKNAgoJQmF0dGxlTG9nEjIKBXN0YXRlGAEgASgOMiMuUE9H", + "T1Byb3Rvcy5EYXRhLkJhdHRsZRopUE9HT1Byb3Rvcy9EYXRhL0JhdHRsZS9C", + "YXR0bGVBY3Rpb24ucHJvdG8aKFBPR09Qcm90b3MvRGF0YS9CYXR0bGUvQmF0", + "dGxlU3RhdGUucHJvdG8aJ1BPR09Qcm90b3MvRGF0YS9CYXR0bGUvQmF0dGxl", + "VHlwZS5wcm90byKNAgoJQmF0dGxlTG9nEjIKBXN0YXRlGAEgASgOMiMuUE9H", "T1Byb3Rvcy5EYXRhLkJhdHRsZS5CYXR0bGVTdGF0ZRI3CgtiYXR0bGVfdHlw", "ZRgCIAEoDjIiLlBPR09Qcm90b3MuRGF0YS5CYXR0bGUuQmF0dGxlVHlwZRIR", "CglzZXJ2ZXJfbXMYAyABKAMSPAoOYmF0dGxlX2FjdGlvbnMYBCADKAsyJC5Q", @@ -34,7 +34,7 @@ static BattleLogReflection() { "c3RhcnRfdGltZXN0YW1wX21zGAUgASgDEh8KF2JhdHRsZV9lbmRfdGltZXN0", "YW1wX21zGAYgASgDYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::POGOProtos.Data.Battle.BattleStateReflection.Descriptor, global::POGOProtos.Data.Battle.BattleTypeReflection.Descriptor, global::POGOProtos.Data.Battle.BattleActionReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::POGOProtos.Data.Battle.BattleActionReflection.Descriptor, global::POGOProtos.Data.Battle.BattleStateReflection.Descriptor, global::POGOProtos.Data.Battle.BattleTypeReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Data.Battle.BattleLog), global::POGOProtos.Data.Battle.BattleLog.Parser, new[]{ "State", "BattleType", "ServerMs", "BattleActions", "BattleStartTimestampMs", "BattleEndTimestampMs" }, null, null, null) })); diff --git a/Data/Battle/BattleResults.cs b/Data/Battle/BattleResults.cs index 5eaa264..b3b9450 100644 --- a/Data/Battle/BattleResults.cs +++ b/Data/Battle/BattleResults.cs @@ -23,16 +23,16 @@ static BattleResultsReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CipQT0dPUHJvdG9zL0RhdGEvQmF0dGxlL0JhdHRsZVJlc3VsdHMucHJvdG8S", - "FlBPR09Qcm90b3MuRGF0YS5CYXR0bGUaIlBPR09Qcm90b3MvRGF0YS9HeW0v", - "R3ltU3RhdGUucHJvdG8aLlBPR09Qcm90b3MvRGF0YS9CYXR0bGUvQmF0dGxl", - "UGFydGljaXBhbnQucHJvdG8i3gEKDUJhdHRsZVJlc3VsdHMSMAoJZ3ltX3N0", + "FlBPR09Qcm90b3MuRGF0YS5CYXR0bGUaLlBPR09Qcm90b3MvRGF0YS9CYXR0", + "bGUvQmF0dGxlUGFydGljaXBhbnQucHJvdG8aIlBPR09Qcm90b3MvRGF0YS9H", + "eW0vR3ltU3RhdGUucHJvdG8i3gEKDUJhdHRsZVJlc3VsdHMSMAoJZ3ltX3N0", "YXRlGAEgASgLMh0uUE9HT1Byb3Rvcy5EYXRhLkd5bS5HeW1TdGF0ZRI8Cglh", "dHRhY2tlcnMYAiADKAsyKS5QT0dPUHJvdG9zLkRhdGEuQmF0dGxlLkJhdHRs", "ZVBhcnRpY2lwYW50EiEKGXBsYXllcl9leHBlcmllbmNlX2F3YXJkZWQYAyAD", "KAUSIAoYbmV4dF9kZWZlbmRlcl9wb2tlbW9uX2lkGAQgASgDEhgKEGd5bV9w", "b2ludHNfZGVsdGEYBSABKAViBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::POGOProtos.Data.Gym.GymStateReflection.Descriptor, global::POGOProtos.Data.Battle.BattleParticipantReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::POGOProtos.Data.Battle.BattleParticipantReflection.Descriptor, global::POGOProtos.Data.Gym.GymStateReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Data.Battle.BattleResults), global::POGOProtos.Data.Battle.BattleResults.Parser, new[]{ "GymState", "Attackers", "PlayerExperienceAwarded", "NextDefenderPokemonId", "GymPointsDelta" }, null, null, null) })); diff --git a/Data/Gym/GymMembership.cs b/Data/Gym/GymMembership.cs index 704af07..55e0605 100644 --- a/Data/Gym/GymMembership.cs +++ b/Data/Gym/GymMembership.cs @@ -23,14 +23,14 @@ static GymMembershipReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CidQT0dPUHJvdG9zL0RhdGEvR3ltL0d5bU1lbWJlcnNoaXAucHJvdG8SE1BP", - "R09Qcm90b3MuRGF0YS5HeW0aIVBPR09Qcm90b3MvRGF0YS9Qb2tlbW9uRGF0", - "YS5wcm90bxowUE9HT1Byb3Rvcy9EYXRhL1BsYXllci9QbGF5ZXJQdWJsaWNQ", - "cm9maWxlLnByb3RvIpABCg1HeW1NZW1iZXJzaGlwEjIKDHBva2Vtb25fZGF0", + "R09Qcm90b3MuRGF0YS5HeW0aMFBPR09Qcm90b3MvRGF0YS9QbGF5ZXIvUGxh", + "eWVyUHVibGljUHJvZmlsZS5wcm90bxohUE9HT1Byb3Rvcy9EYXRhL1Bva2Vt", + "b25EYXRhLnByb3RvIpABCg1HeW1NZW1iZXJzaGlwEjIKDHBva2Vtb25fZGF0", "YRgBIAEoCzIcLlBPR09Qcm90b3MuRGF0YS5Qb2tlbW9uRGF0YRJLChZ0cmFp", "bmVyX3B1YmxpY19wcm9maWxlGAIgASgLMisuUE9HT1Byb3Rvcy5EYXRhLlBs", "YXllci5QbGF5ZXJQdWJsaWNQcm9maWxlYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::POGOProtos.Data.PokemonDataReflection.Descriptor, global::POGOProtos.Data.Player.PlayerPublicProfileReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::POGOProtos.Data.Player.PlayerPublicProfileReflection.Descriptor, global::POGOProtos.Data.PokemonDataReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Data.Gym.GymMembership), global::POGOProtos.Data.Gym.GymMembership.Parser, new[]{ "PokemonData", "TrainerPublicProfile" }, null, null, null) })); diff --git a/Data/Gym/GymState.cs b/Data/Gym/GymState.cs index 4b26207..75c94f4 100644 --- a/Data/Gym/GymState.cs +++ b/Data/Gym/GymState.cs @@ -23,13 +23,13 @@ static GymStateReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CiJQT0dPUHJvdG9zL0RhdGEvR3ltL0d5bVN0YXRlLnByb3RvEhNQT0dPUHJv", - "dG9zLkRhdGEuR3ltGiJQT0dPUHJvdG9zL01hcC9Gb3J0L0ZvcnREYXRhLnBy", - "b3RvGidQT0dPUHJvdG9zL0RhdGEvR3ltL0d5bU1lbWJlcnNoaXAucHJvdG8i", + "dG9zLkRhdGEuR3ltGidQT0dPUHJvdG9zL0RhdGEvR3ltL0d5bU1lbWJlcnNo", + "aXAucHJvdG8aIlBPR09Qcm90b3MvTWFwL0ZvcnQvRm9ydERhdGEucHJvdG8i", "dQoIR3ltU3RhdGUSMAoJZm9ydF9kYXRhGAEgASgLMh0uUE9HT1Byb3Rvcy5N", "YXAuRm9ydC5Gb3J0RGF0YRI3CgttZW1iZXJzaGlwcxgCIAMoCzIiLlBPR09Q", "cm90b3MuRGF0YS5HeW0uR3ltTWVtYmVyc2hpcGIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::POGOProtos.Map.Fort.FortDataReflection.Descriptor, global::POGOProtos.Data.Gym.GymMembershipReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::POGOProtos.Data.Gym.GymMembershipReflection.Descriptor, global::POGOProtos.Map.Fort.FortDataReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Data.Gym.GymState), global::POGOProtos.Data.Gym.GymState.Parser, new[]{ "FortData", "Memberships" }, null, null, null) })); diff --git a/Data/Logs/ActionLogEntry.cs b/Data/Logs/ActionLogEntry.cs index 97b8635..1971d15 100644 --- a/Data/Logs/ActionLogEntry.cs +++ b/Data/Logs/ActionLogEntry.cs @@ -23,10 +23,10 @@ static ActionLogEntryReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CilQT0dPUHJvdG9zL0RhdGEvTG9ncy9BY3Rpb25Mb2dFbnRyeS5wcm90bxIU", - "UE9HT1Byb3Rvcy5EYXRhLkxvZ3MaL1BPR09Qcm90b3MvRGF0YS9Mb2dzL0Nh", - "dGNoUG9rZW1vbkxvZ0VudHJ5LnByb3RvGi1QT0dPUHJvdG9zL0RhdGEvTG9n", - "cy9Gb3J0U2VhcmNoTG9nRW50cnkucHJvdG8aL1BPR09Qcm90b3MvRGF0YS9M", - "b2dzL0J1ZGR5UG9rZW1vbkxvZ0VudHJ5LnByb3RvIooCCg5BY3Rpb25Mb2dF", + "UE9HT1Byb3Rvcy5EYXRhLkxvZ3MaL1BPR09Qcm90b3MvRGF0YS9Mb2dzL0J1", + "ZGR5UG9rZW1vbkxvZ0VudHJ5LnByb3RvGi9QT0dPUHJvdG9zL0RhdGEvTG9n", + "cy9DYXRjaFBva2Vtb25Mb2dFbnRyeS5wcm90bxotUE9HT1Byb3Rvcy9EYXRh", + "L0xvZ3MvRm9ydFNlYXJjaExvZ0VudHJ5LnByb3RvIooCCg5BY3Rpb25Mb2dF", "bnRyeRIUCgx0aW1lc3RhbXBfbXMYASABKAMSDQoFc2ZpZGEYAiABKAgSQwoN", "Y2F0Y2hfcG9rZW1vbhgDIAEoCzIqLlBPR09Qcm90b3MuRGF0YS5Mb2dzLkNh", "dGNoUG9rZW1vbkxvZ0VudHJ5SAASPwoLZm9ydF9zZWFyY2gYBCABKAsyKC5Q", @@ -34,7 +34,7 @@ static ActionLogEntryReflection() { "dWRkeV9wb2tlbW9uGAUgASgLMiouUE9HT1Byb3Rvcy5EYXRhLkxvZ3MuQnVk", "ZHlQb2tlbW9uTG9nRW50cnlIAEIICgZBY3Rpb25iBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::POGOProtos.Data.Logs.CatchPokemonLogEntryReflection.Descriptor, global::POGOProtos.Data.Logs.FortSearchLogEntryReflection.Descriptor, global::POGOProtos.Data.Logs.BuddyPokemonLogEntryReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::POGOProtos.Data.Logs.BuddyPokemonLogEntryReflection.Descriptor, global::POGOProtos.Data.Logs.CatchPokemonLogEntryReflection.Descriptor, global::POGOProtos.Data.Logs.FortSearchLogEntryReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Data.Logs.ActionLogEntry), global::POGOProtos.Data.Logs.ActionLogEntry.Parser, new[]{ "TimestampMs", "Sfida", "CatchPokemon", "FortSearch", "BuddyPokemon" }, new[]{ "Action" }, null, null) })); diff --git a/Data/PlayerData.cs b/Data/PlayerData.cs index 629f609..229401b 100644 --- a/Data/PlayerData.cs +++ b/Data/PlayerData.cs @@ -23,14 +23,14 @@ static PlayerDataReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CiBQT0dPUHJvdG9zL0RhdGEvUGxheWVyRGF0YS5wcm90bxIPUE9HT1Byb3Rv", - "cy5EYXRhGiRQT0dPUHJvdG9zL0VudW1zL1R1dG9yaWFsU3RhdGUucHJvdG8a", - "KVBPR09Qcm90b3MvRGF0YS9QbGF5ZXIvUGxheWVyQXZhdGFyLnByb3RvGidQ", - "T0dPUHJvdG9zL0RhdGEvUGxheWVyL0RhaWx5Qm9udXMucHJvdG8aKlBPR09Q", - "cm90b3MvRGF0YS9QbGF5ZXIvRXF1aXBwZWRCYWRnZS5wcm90bxosUE9HT1By", - "b3Rvcy9EYXRhL1BsYXllci9Db250YWN0U2V0dGluZ3MucHJvdG8aJVBPR09Q", - "cm90b3MvRGF0YS9QbGF5ZXIvQ3VycmVuY3kucHJvdG8aIlBPR09Qcm90b3Mv", - "RGF0YS9CdWRkeVBva2Vtb24ucHJvdG8aIFBPR09Qcm90b3MvRW51bXMvVGVh", - "bUNvbG9yLnByb3RvItwECgpQbGF5ZXJEYXRhEh0KFWNyZWF0aW9uX3RpbWVz", + "cy5EYXRhGiJQT0dPUHJvdG9zL0RhdGEvQnVkZHlQb2tlbW9uLnByb3RvGixQ", + "T0dPUHJvdG9zL0RhdGEvUGxheWVyL0NvbnRhY3RTZXR0aW5ncy5wcm90bxol", + "UE9HT1Byb3Rvcy9EYXRhL1BsYXllci9DdXJyZW5jeS5wcm90bxonUE9HT1By", + "b3Rvcy9EYXRhL1BsYXllci9EYWlseUJvbnVzLnByb3RvGipQT0dPUHJvdG9z", + "L0RhdGEvUGxheWVyL0VxdWlwcGVkQmFkZ2UucHJvdG8aKVBPR09Qcm90b3Mv", + "RGF0YS9QbGF5ZXIvUGxheWVyQXZhdGFyLnByb3RvGiBQT0dPUHJvdG9zL0Vu", + "dW1zL1RlYW1Db2xvci5wcm90bxokUE9HT1Byb3Rvcy9FbnVtcy9UdXRvcmlh", + "bFN0YXRlLnByb3RvItwECgpQbGF5ZXJEYXRhEh0KFWNyZWF0aW9uX3RpbWVz", "dGFtcF9tcxgBIAEoAxIQCgh1c2VybmFtZRgCIAEoCRIpCgR0ZWFtGAUgASgO", "MhsuUE9HT1Byb3Rvcy5FbnVtcy5UZWFtQ29sb3ISOwoOdHV0b3JpYWxfc3Rh", "dGUYByADKA4yHy5QT0dPUHJvdG9zLkVudW1zLlR1dG9yaWFsU3RhdGVCAhAB", @@ -45,7 +45,7 @@ static PlayerDataReflection() { "aW5nX2NvZGVuYW1lX2NsYWltcxgPIAEoBRI0Cg1idWRkeV9wb2tlbW9uGBAg", "ASgLMh0uUE9HT1Byb3Rvcy5EYXRhLkJ1ZGR5UG9rZW1vbmIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::POGOProtos.Enums.TutorialStateReflection.Descriptor, global::POGOProtos.Data.Player.PlayerAvatarReflection.Descriptor, global::POGOProtos.Data.Player.DailyBonusReflection.Descriptor, global::POGOProtos.Data.Player.EquippedBadgeReflection.Descriptor, global::POGOProtos.Data.Player.ContactSettingsReflection.Descriptor, global::POGOProtos.Data.Player.CurrencyReflection.Descriptor, global::POGOProtos.Data.BuddyPokemonReflection.Descriptor, global::POGOProtos.Enums.TeamColorReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::POGOProtos.Data.BuddyPokemonReflection.Descriptor, global::POGOProtos.Data.Player.ContactSettingsReflection.Descriptor, global::POGOProtos.Data.Player.CurrencyReflection.Descriptor, global::POGOProtos.Data.Player.DailyBonusReflection.Descriptor, global::POGOProtos.Data.Player.EquippedBadgeReflection.Descriptor, global::POGOProtos.Data.Player.PlayerAvatarReflection.Descriptor, global::POGOProtos.Enums.TeamColorReflection.Descriptor, global::POGOProtos.Enums.TutorialStateReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Data.PlayerData), global::POGOProtos.Data.PlayerData.Parser, new[]{ "CreationTimestampMs", "Username", "Team", "TutorialState", "Avatar", "MaxPokemonStorage", "MaxItemStorage", "DailyBonus", "EquippedBadge", "ContactSettings", "Currencies", "RemainingCodenameClaims", "BuddyPokemon" }, null, null, null) })); diff --git a/Inventory/EggIncubator.cs b/Inventory/EggIncubator.cs index b426514..e875ed8 100644 --- a/Inventory/EggIncubator.cs +++ b/Inventory/EggIncubator.cs @@ -23,16 +23,16 @@ static EggIncubatorReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CidQT0dPUHJvdG9zL0ludmVudG9yeS9FZ2dJbmN1YmF0b3IucHJvdG8SFFBP", - "R09Qcm90b3MuSW52ZW50b3J5GiZQT0dPUHJvdG9zL0ludmVudG9yeS9JdGVt", - "L0l0ZW1JZC5wcm90bxorUE9HT1Byb3Rvcy9JbnZlbnRvcnkvRWdnSW5jdWJh", - "dG9yVHlwZS5wcm90byLtAQoMRWdnSW5jdWJhdG9yEgoKAmlkGAEgASgJEjIK", + "R09Qcm90b3MuSW52ZW50b3J5GitQT0dPUHJvdG9zL0ludmVudG9yeS9FZ2dJ", + "bmN1YmF0b3JUeXBlLnByb3RvGiZQT0dPUHJvdG9zL0ludmVudG9yeS9JdGVt", + "L0l0ZW1JZC5wcm90byLtAQoMRWdnSW5jdWJhdG9yEgoKAmlkGAEgASgJEjIK", "B2l0ZW1faWQYAiABKA4yIS5QT0dPUHJvdG9zLkludmVudG9yeS5JdGVtLkl0", "ZW1JZBI+Cg5pbmN1YmF0b3JfdHlwZRgDIAEoDjImLlBPR09Qcm90b3MuSW52", "ZW50b3J5LkVnZ0luY3ViYXRvclR5cGUSFgoOdXNlc19yZW1haW5pbmcYBCAB", "KAUSEgoKcG9rZW1vbl9pZBgFIAEoBBIXCg9zdGFydF9rbV93YWxrZWQYBiAB", "KAESGAoQdGFyZ2V0X2ttX3dhbGtlZBgHIAEoAWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::POGOProtos.Inventory.Item.ItemIdReflection.Descriptor, global::POGOProtos.Inventory.EggIncubatorTypeReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::POGOProtos.Inventory.EggIncubatorTypeReflection.Descriptor, global::POGOProtos.Inventory.Item.ItemIdReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Inventory.EggIncubator), global::POGOProtos.Inventory.EggIncubator.Parser, new[]{ "Id", "ItemId", "IncubatorType", "UsesRemaining", "PokemonId", "StartKmWalked", "TargetKmWalked" }, null, null, null) })); diff --git a/Inventory/InventoryItemData.cs b/Inventory/InventoryItemData.cs index d328a83..f96eb4a 100644 --- a/Inventory/InventoryItemData.cs +++ b/Inventory/InventoryItemData.cs @@ -23,16 +23,16 @@ static InventoryItemDataReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CixQT0dPUHJvdG9zL0ludmVudG9yeS9JbnZlbnRvcnlJdGVtRGF0YS5wcm90", - "bxIUUE9HT1Byb3Rvcy5JbnZlbnRvcnkaKFBPR09Qcm90b3MvSW52ZW50b3J5", - "L0l0ZW0vSXRlbURhdGEucHJvdG8aJ1BPR09Qcm90b3MvSW52ZW50b3J5L0Fw", - "cGxpZWRJdGVtcy5wcm90bxooUE9HT1Byb3Rvcy9JbnZlbnRvcnkvRWdnSW5j", - "dWJhdG9ycy5wcm90bxogUE9HT1Byb3Rvcy9JbnZlbnRvcnkvQ2FuZHkucHJv", - "dG8aLFBPR09Qcm90b3MvSW52ZW50b3J5L0ludmVudG9yeVVwZ3JhZGVzLnBy", - "b3RvGiFQT0dPUHJvdG9zL0RhdGEvUG9rZW1vbkRhdGEucHJvdG8aIlBPR09Q", - "cm90b3MvRGF0YS9Qb2tlZGV4RW50cnkucHJvdG8aKFBPR09Qcm90b3MvRGF0", - "YS9QbGF5ZXIvUGxheWVyU3RhdHMucHJvdG8aK1BPR09Qcm90b3MvRGF0YS9Q", - "bGF5ZXIvUGxheWVyQ3VycmVuY3kucHJvdG8aKVBPR09Qcm90b3MvRGF0YS9Q", - "bGF5ZXIvUGxheWVyQ2FtZXJhLnByb3RvItIEChFJbnZlbnRvcnlJdGVtRGF0", + "bxIUUE9HT1Byb3Rvcy5JbnZlbnRvcnkaKVBPR09Qcm90b3MvRGF0YS9QbGF5", + "ZXIvUGxheWVyQ2FtZXJhLnByb3RvGitQT0dPUHJvdG9zL0RhdGEvUGxheWVy", + "L1BsYXllckN1cnJlbmN5LnByb3RvGihQT0dPUHJvdG9zL0RhdGEvUGxheWVy", + "L1BsYXllclN0YXRzLnByb3RvGiJQT0dPUHJvdG9zL0RhdGEvUG9rZWRleEVu", + "dHJ5LnByb3RvGiFQT0dPUHJvdG9zL0RhdGEvUG9rZW1vbkRhdGEucHJvdG8a", + "J1BPR09Qcm90b3MvSW52ZW50b3J5L0FwcGxpZWRJdGVtcy5wcm90bxogUE9H", + "T1Byb3Rvcy9JbnZlbnRvcnkvQ2FuZHkucHJvdG8aKFBPR09Qcm90b3MvSW52", + "ZW50b3J5L0VnZ0luY3ViYXRvcnMucHJvdG8aLFBPR09Qcm90b3MvSW52ZW50", + "b3J5L0ludmVudG9yeVVwZ3JhZGVzLnByb3RvGihQT0dPUHJvdG9zL0ludmVu", + "dG9yeS9JdGVtL0l0ZW1EYXRhLnByb3RvItIEChFJbnZlbnRvcnlJdGVtRGF0", "YRIyCgxwb2tlbW9uX2RhdGEYASABKAsyHC5QT0dPUHJvdG9zLkRhdGEuUG9r", "ZW1vbkRhdGESMQoEaXRlbRgCIAEoCzIjLlBPR09Qcm90b3MuSW52ZW50b3J5", "Lkl0ZW0uSXRlbURhdGESNAoNcG9rZWRleF9lbnRyeRgDIAEoCzIdLlBPR09Q", @@ -47,7 +47,7 @@ static InventoryItemDataReflection() { "MiMuUE9HT1Byb3Rvcy5JbnZlbnRvcnkuRWdnSW5jdWJhdG9ycxIqCgVjYW5k", "eRgKIAEoCzIbLlBPR09Qcm90b3MuSW52ZW50b3J5LkNhbmR5YgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::POGOProtos.Inventory.Item.ItemDataReflection.Descriptor, global::POGOProtos.Inventory.AppliedItemsReflection.Descriptor, global::POGOProtos.Inventory.EggIncubatorsReflection.Descriptor, global::POGOProtos.Inventory.CandyReflection.Descriptor, global::POGOProtos.Inventory.InventoryUpgradesReflection.Descriptor, global::POGOProtos.Data.PokemonDataReflection.Descriptor, global::POGOProtos.Data.PokedexEntryReflection.Descriptor, global::POGOProtos.Data.Player.PlayerStatsReflection.Descriptor, global::POGOProtos.Data.Player.PlayerCurrencyReflection.Descriptor, global::POGOProtos.Data.Player.PlayerCameraReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::POGOProtos.Data.Player.PlayerCameraReflection.Descriptor, global::POGOProtos.Data.Player.PlayerCurrencyReflection.Descriptor, global::POGOProtos.Data.Player.PlayerStatsReflection.Descriptor, global::POGOProtos.Data.PokedexEntryReflection.Descriptor, global::POGOProtos.Data.PokemonDataReflection.Descriptor, global::POGOProtos.Inventory.AppliedItemsReflection.Descriptor, global::POGOProtos.Inventory.CandyReflection.Descriptor, global::POGOProtos.Inventory.EggIncubatorsReflection.Descriptor, global::POGOProtos.Inventory.InventoryUpgradesReflection.Descriptor, global::POGOProtos.Inventory.Item.ItemDataReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Inventory.InventoryItemData), global::POGOProtos.Inventory.InventoryItemData.Parser, new[]{ "PokemonData", "Item", "PokedexEntry", "PlayerStats", "PlayerCurrency", "PlayerCamera", "InventoryUpgrades", "AppliedItems", "EggIncubators", "Candy" }, null, null, null) })); diff --git a/Inventory/InventoryUpgrade.cs b/Inventory/InventoryUpgrade.cs index 93dff08..cb08b95 100644 --- a/Inventory/InventoryUpgrade.cs +++ b/Inventory/InventoryUpgrade.cs @@ -23,15 +23,15 @@ static InventoryUpgradeReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CitQT0dPUHJvdG9zL0ludmVudG9yeS9JbnZlbnRvcnlVcGdyYWRlLnByb3Rv", - "EhRQT0dPUHJvdG9zLkludmVudG9yeRomUE9HT1Byb3Rvcy9JbnZlbnRvcnkv", - "SXRlbS9JdGVtSWQucHJvdG8aL1BPR09Qcm90b3MvSW52ZW50b3J5L0ludmVu", - "dG9yeVVwZ3JhZGVUeXBlLnByb3RvIqQBChBJbnZlbnRvcnlVcGdyYWRlEjIK", + "EhRQT0dPUHJvdG9zLkludmVudG9yeRovUE9HT1Byb3Rvcy9JbnZlbnRvcnkv", + "SW52ZW50b3J5VXBncmFkZVR5cGUucHJvdG8aJlBPR09Qcm90b3MvSW52ZW50", + "b3J5L0l0ZW0vSXRlbUlkLnByb3RvIqQBChBJbnZlbnRvcnlVcGdyYWRlEjIK", "B2l0ZW1faWQYASABKA4yIS5QT0dPUHJvdG9zLkludmVudG9yeS5JdGVtLkl0", "ZW1JZBJACgx1cGdyYWRlX3R5cGUYAiABKA4yKi5QT0dPUHJvdG9zLkludmVu", "dG9yeS5JbnZlbnRvcnlVcGdyYWRlVHlwZRIaChJhZGRpdGlvbmFsX3N0b3Jh", "Z2UYAyABKAViBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::POGOProtos.Inventory.Item.ItemIdReflection.Descriptor, global::POGOProtos.Inventory.InventoryUpgradeTypeReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::POGOProtos.Inventory.InventoryUpgradeTypeReflection.Descriptor, global::POGOProtos.Inventory.Item.ItemIdReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Inventory.InventoryUpgrade), global::POGOProtos.Inventory.InventoryUpgrade.Parser, new[]{ "ItemId", "UpgradeType", "AdditionalStorage" }, null, null, null) })); diff --git a/Map/Fort/FortData.cs b/Map/Fort/FortData.cs index d84e9ab..22f8294 100644 --- a/Map/Fort/FortData.cs +++ b/Map/Fort/FortData.cs @@ -25,11 +25,11 @@ static FortDataReflection() { "CiJQT0dPUHJvdG9zL01hcC9Gb3J0L0ZvcnREYXRhLnByb3RvEhNQT0dPUHJv", "dG9zLk1hcC5Gb3J0GiBQT0dPUHJvdG9zL0VudW1zL1Bva2Vtb25JZC5wcm90", "bxogUE9HT1Byb3Rvcy9FbnVtcy9UZWFtQ29sb3IucHJvdG8aJlBPR09Qcm90", - "b3MvSW52ZW50b3J5L0l0ZW0vSXRlbUlkLnByb3RvGiJQT0dPUHJvdG9zL01h", - "cC9Gb3J0L0ZvcnRUeXBlLnByb3RvGiVQT0dPUHJvdG9zL01hcC9Gb3J0L0Zv", - "cnRTcG9uc29yLnByb3RvGitQT0dPUHJvdG9zL01hcC9Gb3J0L0ZvcnRSZW5k", - "ZXJpbmdUeXBlLnByb3RvGiZQT0dPUHJvdG9zL01hcC9Gb3J0L0ZvcnRMdXJl", - "SW5mby5wcm90byLeBAoIRm9ydERhdGESCgoCaWQYASABKAkSIgoabGFzdF9t", + "b3MvSW52ZW50b3J5L0l0ZW0vSXRlbUlkLnByb3RvGiZQT0dPUHJvdG9zL01h", + "cC9Gb3J0L0ZvcnRMdXJlSW5mby5wcm90bxorUE9HT1Byb3Rvcy9NYXAvRm9y", + "dC9Gb3J0UmVuZGVyaW5nVHlwZS5wcm90bxolUE9HT1Byb3Rvcy9NYXAvRm9y", + "dC9Gb3J0U3BvbnNvci5wcm90bxoiUE9HT1Byb3Rvcy9NYXAvRm9ydC9Gb3J0", + "VHlwZS5wcm90byLeBAoIRm9ydERhdGESCgoCaWQYASABKAkSIgoabGFzdF9t", "b2RpZmllZF90aW1lc3RhbXBfbXMYAiABKAMSEAoIbGF0aXR1ZGUYAyABKAES", "EQoJbG9uZ2l0dWRlGAQgASgBEg8KB2VuYWJsZWQYCCABKAgSKwoEdHlwZRgJ", "IAEoDjIdLlBPR09Qcm90b3MuTWFwLkZvcnQuRm9ydFR5cGUSMgoNb3duZWRf", @@ -44,7 +44,7 @@ static FortDataReflection() { "b3J0LkZvcnRTcG9uc29yEj4KDnJlbmRlcmluZ190eXBlGBAgASgOMiYuUE9H", "T1Byb3Rvcy5NYXAuRm9ydC5Gb3J0UmVuZGVyaW5nVHlwZWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::POGOProtos.Enums.PokemonIdReflection.Descriptor, global::POGOProtos.Enums.TeamColorReflection.Descriptor, global::POGOProtos.Inventory.Item.ItemIdReflection.Descriptor, global::POGOProtos.Map.Fort.FortTypeReflection.Descriptor, global::POGOProtos.Map.Fort.FortSponsorReflection.Descriptor, global::POGOProtos.Map.Fort.FortRenderingTypeReflection.Descriptor, global::POGOProtos.Map.Fort.FortLureInfoReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::POGOProtos.Enums.PokemonIdReflection.Descriptor, global::POGOProtos.Enums.TeamColorReflection.Descriptor, global::POGOProtos.Inventory.Item.ItemIdReflection.Descriptor, global::POGOProtos.Map.Fort.FortLureInfoReflection.Descriptor, global::POGOProtos.Map.Fort.FortRenderingTypeReflection.Descriptor, global::POGOProtos.Map.Fort.FortSponsorReflection.Descriptor, global::POGOProtos.Map.Fort.FortTypeReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Map.Fort.FortData), global::POGOProtos.Map.Fort.FortData.Parser, new[]{ "Id", "LastModifiedTimestampMs", "Latitude", "Longitude", "Enabled", "Type", "OwnedByTeam", "GuardPokemonId", "GuardPokemonCp", "GymPoints", "IsInBattle", "ActiveFortModifier", "LureInfo", "CooldownCompleteTimestampMs", "Sponsor", "RenderingType" }, null, null, null) })); diff --git a/Map/MapCell.cs b/Map/MapCell.cs index 53c70ae..7b9b95d 100644 --- a/Map/MapCell.cs +++ b/Map/MapCell.cs @@ -23,12 +23,12 @@ static MapCellReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChxQT0dPUHJvdG9zL01hcC9NYXBDZWxsLnByb3RvEg5QT0dPUHJvdG9zLk1h", - "cBofUE9HT1Byb3Rvcy9NYXAvU3Bhd25Qb2ludC5wcm90bxoiUE9HT1Byb3Rv", - "cy9NYXAvRm9ydC9Gb3J0RGF0YS5wcm90bxolUE9HT1Byb3Rvcy9NYXAvRm9y", - "dC9Gb3J0U3VtbWFyeS5wcm90bxoqUE9HT1Byb3Rvcy9NYXAvUG9rZW1vbi9O", - "ZWFyYnlQb2tlbW9uLnByb3RvGihQT0dPUHJvdG9zL01hcC9Qb2tlbW9uL1dp", - "bGRQb2tlbW9uLnByb3RvGidQT0dPUHJvdG9zL01hcC9Qb2tlbW9uL01hcFBv", - "a2Vtb24ucHJvdG8igQQKB01hcENlbGwSEgoKczJfY2VsbF9pZBgBIAEoBBIc", + "cBoiUE9HT1Byb3Rvcy9NYXAvRm9ydC9Gb3J0RGF0YS5wcm90bxolUE9HT1By", + "b3Rvcy9NYXAvRm9ydC9Gb3J0U3VtbWFyeS5wcm90bxonUE9HT1Byb3Rvcy9N", + "YXAvUG9rZW1vbi9NYXBQb2tlbW9uLnByb3RvGipQT0dPUHJvdG9zL01hcC9Q", + "b2tlbW9uL05lYXJieVBva2Vtb24ucHJvdG8aKFBPR09Qcm90b3MvTWFwL1Bv", + "a2Vtb24vV2lsZFBva2Vtb24ucHJvdG8aH1BPR09Qcm90b3MvTWFwL1NwYXdu", + "UG9pbnQucHJvdG8igQQKB01hcENlbGwSEgoKczJfY2VsbF9pZBgBIAEoBBIc", "ChRjdXJyZW50X3RpbWVzdGFtcF9tcxgCIAEoAxIsCgVmb3J0cxgDIAMoCzId", "LlBPR09Qcm90b3MuTWFwLkZvcnQuRm9ydERhdGESMAoMc3Bhd25fcG9pbnRz", "GAQgAygLMhouUE9HT1Byb3Rvcy5NYXAuU3Bhd25Qb2ludBIXCg9kZWxldGVk", @@ -41,7 +41,7 @@ static MapCellReflection() { "b24uTWFwUG9rZW1vbhI+Cg9uZWFyYnlfcG9rZW1vbnMYCyADKAsyJS5QT0dP", "UHJvdG9zLk1hcC5Qb2tlbW9uLk5lYXJieVBva2Vtb25iBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::POGOProtos.Map.SpawnPointReflection.Descriptor, global::POGOProtos.Map.Fort.FortDataReflection.Descriptor, global::POGOProtos.Map.Fort.FortSummaryReflection.Descriptor, global::POGOProtos.Map.Pokemon.NearbyPokemonReflection.Descriptor, global::POGOProtos.Map.Pokemon.WildPokemonReflection.Descriptor, global::POGOProtos.Map.Pokemon.MapPokemonReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::POGOProtos.Map.Fort.FortDataReflection.Descriptor, global::POGOProtos.Map.Fort.FortSummaryReflection.Descriptor, global::POGOProtos.Map.Pokemon.MapPokemonReflection.Descriptor, global::POGOProtos.Map.Pokemon.NearbyPokemonReflection.Descriptor, global::POGOProtos.Map.Pokemon.WildPokemonReflection.Descriptor, global::POGOProtos.Map.SpawnPointReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Map.MapCell), global::POGOProtos.Map.MapCell.Parser, new[]{ "S2CellId", "CurrentTimestampMs", "Forts", "SpawnPoints", "DeletedObjects", "IsTruncatedList", "FortSummaries", "DecimatedSpawnPoints", "WildPokemons", "CatchablePokemons", "NearbyPokemons" }, null, null, null) })); diff --git a/Networking/Envelopes/POGOProtosNetworkingEnvelopes.cs b/Networking/Envelopes/POGOProtosNetworkingEnvelopes.cs deleted file mode 100644 index bad1355..0000000 --- a/Networking/Envelopes/POGOProtosNetworkingEnvelopes.cs +++ /dev/null @@ -1,2504 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: POGOProtos.Networking.Envelopes.proto -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace POGOProtos.Networking.Envelopes { - - /// Holder for reflection information generated from POGOProtos.Networking.Envelopes.proto - public static partial class POGOProtosNetworkingEnvelopesReflection { - - #region Descriptor - /// File descriptor for POGOProtos.Networking.Envelopes.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static POGOProtosNetworkingEnvelopesReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CiVQT0dPUHJvdG9zLk5ldHdvcmtpbmcuRW52ZWxvcGVzLnByb3RvEh9QT0dP", - "UHJvdG9zLk5ldHdvcmtpbmcuRW52ZWxvcGVzGiRQT0dPUHJvdG9zLk5ldHdv", - "cmtpbmcuUmVxdWVzdHMucHJvdG8aHFBPR09Qcm90b3MuRGF0YS5QbGF5ZXIu", - "cHJvdG8aH1BPR09Qcm90b3MuSW52ZW50b3J5Lkl0ZW0ucHJvdG8iRQoKQXV0", - "aFRpY2tldBINCgVzdGFydBgBIAEoDBIbChNleHBpcmVfdGltZXN0YW1wX21z", - "GAIgASgEEgsKA2VuZBgDIAEoDCKkBAoPUmVxdWVzdEVudmVsb3BlEhMKC3N0", - "YXR1c19jb2RlGAEgASgFEhIKCnJlcXVlc3RfaWQYAyABKAQSOQoIcmVxdWVz", - "dHMYBCADKAsyJy5QT0dPUHJvdG9zLk5ldHdvcmtpbmcuUmVxdWVzdHMuUmVx", - "dWVzdBI7Cgh1bmtub3duNhgGIAMoCzIpLlBPR09Qcm90b3MuTmV0d29ya2lu", - "Zy5FbnZlbG9wZXMuVW5rbm93bjYSEAoIbGF0aXR1ZGUYByABKAESEQoJbG9u", - "Z2l0dWRlGAggASgBEhAKCGFsdGl0dWRlGAkgASgBEkwKCWF1dGhfaW5mbxgK", - "IAEoCzI5LlBPR09Qcm90b3MuTmV0d29ya2luZy5FbnZlbG9wZXMuUmVxdWVz", - "dEVudmVsb3BlLkF1dGhJbmZvEkAKC2F1dGhfdGlja2V0GAsgASgLMisuUE9H", - "T1Byb3Rvcy5OZXR3b3JraW5nLkVudmVsb3Blcy5BdXRoVGlja2V0EhEKCXVu", - "a25vd24xMhgMIAEoAxqVAQoIQXV0aEluZm8SEAoIcHJvdmlkZXIYASABKAkS", - "TAoFdG9rZW4YAiABKAsyPS5QT0dPUHJvdG9zLk5ldHdvcmtpbmcuRW52ZWxv", - "cGVzLlJlcXVlc3RFbnZlbG9wZS5BdXRoSW5mby5KV1QaKQoDSldUEhAKCGNv", - "bnRlbnRzGAEgASgJEhAKCHVua25vd24yGAIgASgFIrgCChBSZXNwb25zZUVu", - "dmVsb3BlEhMKC3N0YXR1c19jb2RlGAEgASgFEhIKCnJlcXVlc3RfaWQYAiAB", - "KAQSDwoHYXBpX3VybBgDIAEoCRJDCgh1bmtub3duNhgGIAMoCzIxLlBPR09Q", - "cm90b3MuTmV0d29ya2luZy5FbnZlbG9wZXMuVW5rbm93bjZSZXNwb25zZRJA", - "CgthdXRoX3RpY2tldBgHIAEoCzIrLlBPR09Qcm90b3MuTmV0d29ya2luZy5F", - "bnZlbG9wZXMuQXV0aFRpY2tldBIPCgdyZXR1cm5zGGQgAygMEg0KBWVycm9y", - "GGUgASgJGkMKCFVua25vd243EhEKCXVua25vd243MRgBIAEoDBIRCgl1bmtu", - "b3duNzIYAiABKAMSEQoJdW5rbm93bjczGAMgASgMIqYFChBVbmtub3duNlJl", - "c3BvbnNlEhUKDXJlc3BvbnNlX3R5cGUYASABKAUSTAoIdW5rbm93bjIYAiAB", - "KAsyOi5QT0dPUHJvdG9zLk5ldHdvcmtpbmcuRW52ZWxvcGVzLlVua25vd242", - "UmVzcG9uc2UuVW5rbm93bjIarAQKCFVua25vd24yEhAKCHVua25vd24xGAEg", - "ASgEElMKBWl0ZW1zGAIgAygLMkQuUE9HT1Byb3Rvcy5OZXR3b3JraW5nLkVu", - "dmVsb3Blcy5Vbmtub3duNlJlc3BvbnNlLlVua25vd24yLlN0b3JlSXRlbRI7", - "ChFwbGF5ZXJfY3VycmVuY2llcxgDIAMoCzIgLlBPR09Qcm90b3MuRGF0YS5Q", - "bGF5ZXIuQ3VycmVuY3kSEAoIdW5rbm93bjQYBCABKAka6QIKCVN0b3JlSXRl", - "bRIPCgdpdGVtX2lkGAEgASgJEg4KBmlzX2lhcBgCIAEoCBI5Cg9jdXJyZW5j", - "eV90b19idXkYAyABKAsyIC5QT0dPUHJvdG9zLkRhdGEuUGxheWVyLkN1cnJl", - "bmN5EjkKD3lpZWxkc19jdXJyZW5jeRgEIAEoCzIgLlBPR09Qcm90b3MuRGF0", - "YS5QbGF5ZXIuQ3VycmVuY3kSOAoLeWllbGRzX2l0ZW0YBSABKAsyIy5QT0dP", - "UHJvdG9zLkludmVudG9yeS5JdGVtLkl0ZW1EYXRhElYKBHRhZ3MYBiADKAsy", - "SC5QT0dPUHJvdG9zLk5ldHdvcmtpbmcuRW52ZWxvcGVzLlVua25vd242UmVz", - "cG9uc2UuVW5rbm93bjIuU3RvcmVJdGVtLlRhZxIQCgh1bmtub3duNxgHIAEo", - "BRohCgNUYWcSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJIoQBCghVbmtu", - "b3duNhIUCgxyZXF1ZXN0X3R5cGUYASABKAUSRAoIdW5rbm93bjIYAiABKAsy", - "Mi5QT0dPUHJvdG9zLk5ldHdvcmtpbmcuRW52ZWxvcGVzLlVua25vd242LlVu", - "a25vd24yGhwKCFVua25vd24yEhAKCHVua25vd24xGAEgASgMUABQAVACYgZw", - "cm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::POGOProtos.Networking.Requests.POGOProtosNetworkingRequestsReflection.Descriptor, global::POGOProtos.Data.Player.POGOProtosDataPlayerReflection.Descriptor, global::POGOProtos.Inventory.Item.POGOProtosInventoryItemReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.AuthTicket), global::POGOProtos.Networking.Envelopes.AuthTicket.Parser, new[]{ "Start", "ExpireTimestampMs", "End" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.RequestEnvelope), global::POGOProtos.Networking.Envelopes.RequestEnvelope.Parser, new[]{ "StatusCode", "RequestId", "Requests", "Unknown6", "Latitude", "Longitude", "Altitude", "AuthInfo", "AuthTicket", "Unknown12" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.RequestEnvelope.Types.AuthInfo), global::POGOProtos.Networking.Envelopes.RequestEnvelope.Types.AuthInfo.Parser, new[]{ "Provider", "Token" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.RequestEnvelope.Types.AuthInfo.Types.JWT), global::POGOProtos.Networking.Envelopes.RequestEnvelope.Types.AuthInfo.Types.JWT.Parser, new[]{ "Contents", "Unknown2" }, null, null, null)})}), - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.ResponseEnvelope), global::POGOProtos.Networking.Envelopes.ResponseEnvelope.Parser, new[]{ "StatusCode", "RequestId", "ApiUrl", "Unknown6", "AuthTicket", "Returns", "Error" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.ResponseEnvelope.Types.Unknown7), global::POGOProtos.Networking.Envelopes.ResponseEnvelope.Types.Unknown7.Parser, new[]{ "Unknown71", "Unknown72", "Unknown73" }, null, null, null)}), - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.Unknown6Response), global::POGOProtos.Networking.Envelopes.Unknown6Response.Parser, new[]{ "ResponseType", "Unknown2" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2), global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2.Parser, new[]{ "Unknown1", "Items", "PlayerCurrencies", "Unknown4" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2.Types.StoreItem), global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2.Types.StoreItem.Parser, new[]{ "ItemId", "IsIap", "CurrencyToBuy", "YieldsCurrency", "YieldsItem", "Tags", "Unknown7" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2.Types.StoreItem.Types.Tag), global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2.Types.StoreItem.Types.Tag.Parser, new[]{ "Key", "Value" }, null, null, null)})})}), - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.Unknown6), global::POGOProtos.Networking.Envelopes.Unknown6.Parser, new[]{ "RequestType", "Unknown2" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.Unknown6.Types.Unknown2), global::POGOProtos.Networking.Envelopes.Unknown6.Types.Unknown2.Parser, new[]{ "Unknown1" }, null, null, null)}) - })); - } - #endregion - - } - #region Messages - public sealed partial class AuthTicket : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AuthTicket()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Envelopes.POGOProtosNetworkingEnvelopesReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public AuthTicket() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public AuthTicket(AuthTicket other) : this() { - start_ = other.start_; - expireTimestampMs_ = other.expireTimestampMs_; - end_ = other.end_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public AuthTicket Clone() { - return new AuthTicket(this); - } - - /// Field number for the "start" field. - public const int StartFieldNumber = 1; - private pb::ByteString start_ = pb::ByteString.Empty; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pb::ByteString Start { - get { return start_; } - set { - start_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "expire_timestamp_ms" field. - public const int ExpireTimestampMsFieldNumber = 2; - private ulong expireTimestampMs_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong ExpireTimestampMs { - get { return expireTimestampMs_; } - set { - expireTimestampMs_ = value; - } - } - - /// Field number for the "end" field. - public const int EndFieldNumber = 3; - private pb::ByteString end_ = pb::ByteString.Empty; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pb::ByteString End { - get { return end_; } - set { - end_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as AuthTicket); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(AuthTicket other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Start != other.Start) return false; - if (ExpireTimestampMs != other.ExpireTimestampMs) return false; - if (End != other.End) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (Start.Length != 0) hash ^= Start.GetHashCode(); - if (ExpireTimestampMs != 0UL) hash ^= ExpireTimestampMs.GetHashCode(); - if (End.Length != 0) hash ^= End.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (Start.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(Start); - } - if (ExpireTimestampMs != 0UL) { - output.WriteRawTag(16); - output.WriteUInt64(ExpireTimestampMs); - } - if (End.Length != 0) { - output.WriteRawTag(26); - output.WriteBytes(End); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Start.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Start); - } - if (ExpireTimestampMs != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ExpireTimestampMs); - } - if (End.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(End); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(AuthTicket other) { - if (other == null) { - return; - } - if (other.Start.Length != 0) { - Start = other.Start; - } - if (other.ExpireTimestampMs != 0UL) { - ExpireTimestampMs = other.ExpireTimestampMs; - } - if (other.End.Length != 0) { - End = other.End; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - Start = input.ReadBytes(); - break; - } - case 16: { - ExpireTimestampMs = input.ReadUInt64(); - break; - } - case 26: { - End = input.ReadBytes(); - break; - } - } - } - } - - } - - public sealed partial class RequestEnvelope : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RequestEnvelope()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Envelopes.POGOProtosNetworkingEnvelopesReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public RequestEnvelope() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public RequestEnvelope(RequestEnvelope other) : this() { - statusCode_ = other.statusCode_; - requestId_ = other.requestId_; - requests_ = other.requests_.Clone(); - unknown6_ = other.unknown6_.Clone(); - latitude_ = other.latitude_; - longitude_ = other.longitude_; - altitude_ = other.altitude_; - AuthInfo = other.authInfo_ != null ? other.AuthInfo.Clone() : null; - AuthTicket = other.authTicket_ != null ? other.AuthTicket.Clone() : null; - unknown12_ = other.unknown12_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public RequestEnvelope Clone() { - return new RequestEnvelope(this); - } - - /// Field number for the "status_code" field. - public const int StatusCodeFieldNumber = 1; - private int statusCode_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int StatusCode { - get { return statusCode_; } - set { - statusCode_ = value; - } - } - - /// Field number for the "request_id" field. - public const int RequestIdFieldNumber = 3; - private ulong requestId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong RequestId { - get { return requestId_; } - set { - requestId_ = value; - } - } - - /// Field number for the "requests" field. - public const int RequestsFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_requests_codec - = pb::FieldCodec.ForMessage(34, global::POGOProtos.Networking.Requests.Request.Parser); - private readonly pbc::RepeatedField requests_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Requests { - get { return requests_; } - } - - /// Field number for the "unknown6" field. - public const int Unknown6FieldNumber = 6; - private static readonly pb::FieldCodec _repeated_unknown6_codec - = pb::FieldCodec.ForMessage(50, global::POGOProtos.Networking.Envelopes.Unknown6.Parser); - private readonly pbc::RepeatedField unknown6_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Unknown6 { - get { return unknown6_; } - } - - /// Field number for the "latitude" field. - public const int LatitudeFieldNumber = 7; - private double latitude_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double Latitude { - get { return latitude_; } - set { - latitude_ = value; - } - } - - /// Field number for the "longitude" field. - public const int LongitudeFieldNumber = 8; - private double longitude_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double Longitude { - get { return longitude_; } - set { - longitude_ = value; - } - } - - /// Field number for the "altitude" field. - public const int AltitudeFieldNumber = 9; - private double altitude_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double Altitude { - get { return altitude_; } - set { - altitude_ = value; - } - } - - /// Field number for the "auth_info" field. - public const int AuthInfoFieldNumber = 10; - private global::POGOProtos.Networking.Envelopes.RequestEnvelope.Types.AuthInfo authInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Networking.Envelopes.RequestEnvelope.Types.AuthInfo AuthInfo { - get { return authInfo_; } - set { - authInfo_ = value; - } - } - - /// Field number for the "auth_ticket" field. - public const int AuthTicketFieldNumber = 11; - private global::POGOProtos.Networking.Envelopes.AuthTicket authTicket_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Networking.Envelopes.AuthTicket AuthTicket { - get { return authTicket_; } - set { - authTicket_ = value; - } - } - - /// Field number for the "unknown12" field. - public const int Unknown12FieldNumber = 12; - private long unknown12_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long Unknown12 { - get { return unknown12_; } - set { - unknown12_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as RequestEnvelope); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(RequestEnvelope other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (StatusCode != other.StatusCode) return false; - if (RequestId != other.RequestId) return false; - if(!requests_.Equals(other.requests_)) return false; - if(!unknown6_.Equals(other.unknown6_)) return false; - if (Latitude != other.Latitude) return false; - if (Longitude != other.Longitude) return false; - if (Altitude != other.Altitude) return false; - if (!object.Equals(AuthInfo, other.AuthInfo)) return false; - if (!object.Equals(AuthTicket, other.AuthTicket)) return false; - if (Unknown12 != other.Unknown12) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (StatusCode != 0) hash ^= StatusCode.GetHashCode(); - if (RequestId != 0UL) hash ^= RequestId.GetHashCode(); - hash ^= requests_.GetHashCode(); - hash ^= unknown6_.GetHashCode(); - if (Latitude != 0D) hash ^= Latitude.GetHashCode(); - if (Longitude != 0D) hash ^= Longitude.GetHashCode(); - if (Altitude != 0D) hash ^= Altitude.GetHashCode(); - if (authInfo_ != null) hash ^= AuthInfo.GetHashCode(); - if (authTicket_ != null) hash ^= AuthTicket.GetHashCode(); - if (Unknown12 != 0L) hash ^= Unknown12.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (StatusCode != 0) { - output.WriteRawTag(8); - output.WriteInt32(StatusCode); - } - if (RequestId != 0UL) { - output.WriteRawTag(24); - output.WriteUInt64(RequestId); - } - requests_.WriteTo(output, _repeated_requests_codec); - unknown6_.WriteTo(output, _repeated_unknown6_codec); - if (Latitude != 0D) { - output.WriteRawTag(57); - output.WriteDouble(Latitude); - } - if (Longitude != 0D) { - output.WriteRawTag(65); - output.WriteDouble(Longitude); - } - if (Altitude != 0D) { - output.WriteRawTag(73); - output.WriteDouble(Altitude); - } - if (authInfo_ != null) { - output.WriteRawTag(82); - output.WriteMessage(AuthInfo); - } - if (authTicket_ != null) { - output.WriteRawTag(90); - output.WriteMessage(AuthTicket); - } - if (Unknown12 != 0L) { - output.WriteRawTag(96); - output.WriteInt64(Unknown12); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (StatusCode != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(StatusCode); - } - if (RequestId != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RequestId); - } - size += requests_.CalculateSize(_repeated_requests_codec); - size += unknown6_.CalculateSize(_repeated_unknown6_codec); - if (Latitude != 0D) { - size += 1 + 8; - } - if (Longitude != 0D) { - size += 1 + 8; - } - if (Altitude != 0D) { - size += 1 + 8; - } - if (authInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AuthInfo); - } - if (authTicket_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AuthTicket); - } - if (Unknown12 != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Unknown12); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(RequestEnvelope other) { - if (other == null) { - return; - } - if (other.StatusCode != 0) { - StatusCode = other.StatusCode; - } - if (other.RequestId != 0UL) { - RequestId = other.RequestId; - } - requests_.Add(other.requests_); - unknown6_.Add(other.unknown6_); - if (other.Latitude != 0D) { - Latitude = other.Latitude; - } - if (other.Longitude != 0D) { - Longitude = other.Longitude; - } - if (other.Altitude != 0D) { - Altitude = other.Altitude; - } - if (other.authInfo_ != null) { - if (authInfo_ == null) { - authInfo_ = new global::POGOProtos.Networking.Envelopes.RequestEnvelope.Types.AuthInfo(); - } - AuthInfo.MergeFrom(other.AuthInfo); - } - if (other.authTicket_ != null) { - if (authTicket_ == null) { - authTicket_ = new global::POGOProtos.Networking.Envelopes.AuthTicket(); - } - AuthTicket.MergeFrom(other.AuthTicket); - } - if (other.Unknown12 != 0L) { - Unknown12 = other.Unknown12; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 8: { - StatusCode = input.ReadInt32(); - break; - } - case 24: { - RequestId = input.ReadUInt64(); - break; - } - case 34: { - requests_.AddEntriesFrom(input, _repeated_requests_codec); - break; - } - case 50: { - unknown6_.AddEntriesFrom(input, _repeated_unknown6_codec); - break; - } - case 57: { - Latitude = input.ReadDouble(); - break; - } - case 65: { - Longitude = input.ReadDouble(); - break; - } - case 73: { - Altitude = input.ReadDouble(); - break; - } - case 82: { - if (authInfo_ == null) { - authInfo_ = new global::POGOProtos.Networking.Envelopes.RequestEnvelope.Types.AuthInfo(); - } - input.ReadMessage(authInfo_); - break; - } - case 90: { - if (authTicket_ == null) { - authTicket_ = new global::POGOProtos.Networking.Envelopes.AuthTicket(); - } - input.ReadMessage(authTicket_); - break; - } - case 96: { - Unknown12 = input.ReadInt64(); - break; - } - } - } - } - - #region Nested types - /// Container for nested types declared in the RequestEnvelope message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static partial class Types { - public sealed partial class AuthInfo : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AuthInfo()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Envelopes.RequestEnvelope.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public AuthInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public AuthInfo(AuthInfo other) : this() { - provider_ = other.provider_; - Token = other.token_ != null ? other.Token.Clone() : null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public AuthInfo Clone() { - return new AuthInfo(this); - } - - /// Field number for the "provider" field. - public const int ProviderFieldNumber = 1; - private string provider_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Provider { - get { return provider_; } - set { - provider_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "token" field. - public const int TokenFieldNumber = 2; - private global::POGOProtos.Networking.Envelopes.RequestEnvelope.Types.AuthInfo.Types.JWT token_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Networking.Envelopes.RequestEnvelope.Types.AuthInfo.Types.JWT Token { - get { return token_; } - set { - token_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as AuthInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(AuthInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Provider != other.Provider) return false; - if (!object.Equals(Token, other.Token)) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (Provider.Length != 0) hash ^= Provider.GetHashCode(); - if (token_ != null) hash ^= Token.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (Provider.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Provider); - } - if (token_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Token); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Provider.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Provider); - } - if (token_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Token); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(AuthInfo other) { - if (other == null) { - return; - } - if (other.Provider.Length != 0) { - Provider = other.Provider; - } - if (other.token_ != null) { - if (token_ == null) { - token_ = new global::POGOProtos.Networking.Envelopes.RequestEnvelope.Types.AuthInfo.Types.JWT(); - } - Token.MergeFrom(other.Token); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - Provider = input.ReadString(); - break; - } - case 18: { - if (token_ == null) { - token_ = new global::POGOProtos.Networking.Envelopes.RequestEnvelope.Types.AuthInfo.Types.JWT(); - } - input.ReadMessage(token_); - break; - } - } - } - } - - #region Nested types - /// Container for nested types declared in the AuthInfo message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static partial class Types { - public sealed partial class JWT : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JWT()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Envelopes.RequestEnvelope.Types.AuthInfo.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public JWT() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public JWT(JWT other) : this() { - contents_ = other.contents_; - unknown2_ = other.unknown2_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public JWT Clone() { - return new JWT(this); - } - - /// Field number for the "contents" field. - public const int ContentsFieldNumber = 1; - private string contents_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Contents { - get { return contents_; } - set { - contents_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "unknown2" field. - public const int Unknown2FieldNumber = 2; - private int unknown2_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Unknown2 { - get { return unknown2_; } - set { - unknown2_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as JWT); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(JWT other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Contents != other.Contents) return false; - if (Unknown2 != other.Unknown2) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (Contents.Length != 0) hash ^= Contents.GetHashCode(); - if (Unknown2 != 0) hash ^= Unknown2.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (Contents.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Contents); - } - if (Unknown2 != 0) { - output.WriteRawTag(16); - output.WriteInt32(Unknown2); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Contents.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Contents); - } - if (Unknown2 != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Unknown2); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(JWT other) { - if (other == null) { - return; - } - if (other.Contents.Length != 0) { - Contents = other.Contents; - } - if (other.Unknown2 != 0) { - Unknown2 = other.Unknown2; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - Contents = input.ReadString(); - break; - } - case 16: { - Unknown2 = input.ReadInt32(); - break; - } - } - } - } - - } - - } - #endregion - - } - - } - #endregion - - } - - public sealed partial class ResponseEnvelope : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResponseEnvelope()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Envelopes.POGOProtosNetworkingEnvelopesReflection.Descriptor.MessageTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ResponseEnvelope() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ResponseEnvelope(ResponseEnvelope other) : this() { - statusCode_ = other.statusCode_; - requestId_ = other.requestId_; - apiUrl_ = other.apiUrl_; - unknown6_ = other.unknown6_.Clone(); - AuthTicket = other.authTicket_ != null ? other.AuthTicket.Clone() : null; - returns_ = other.returns_.Clone(); - error_ = other.error_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ResponseEnvelope Clone() { - return new ResponseEnvelope(this); - } - - /// Field number for the "status_code" field. - public const int StatusCodeFieldNumber = 1; - private int statusCode_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int StatusCode { - get { return statusCode_; } - set { - statusCode_ = value; - } - } - - /// Field number for the "request_id" field. - public const int RequestIdFieldNumber = 2; - private ulong requestId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong RequestId { - get { return requestId_; } - set { - requestId_ = value; - } - } - - /// Field number for the "api_url" field. - public const int ApiUrlFieldNumber = 3; - private string apiUrl_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string ApiUrl { - get { return apiUrl_; } - set { - apiUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "unknown6" field. - public const int Unknown6FieldNumber = 6; - private static readonly pb::FieldCodec _repeated_unknown6_codec - = pb::FieldCodec.ForMessage(50, global::POGOProtos.Networking.Envelopes.Unknown6Response.Parser); - private readonly pbc::RepeatedField unknown6_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Unknown6 { - get { return unknown6_; } - } - - /// Field number for the "auth_ticket" field. - public const int AuthTicketFieldNumber = 7; - private global::POGOProtos.Networking.Envelopes.AuthTicket authTicket_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Networking.Envelopes.AuthTicket AuthTicket { - get { return authTicket_; } - set { - authTicket_ = value; - } - } - - /// Field number for the "returns" field. - public const int ReturnsFieldNumber = 100; - private static readonly pb::FieldCodec _repeated_returns_codec - = pb::FieldCodec.ForBytes(802); - private readonly pbc::RepeatedField returns_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Returns { - get { return returns_; } - } - - /// Field number for the "error" field. - public const int ErrorFieldNumber = 101; - private string error_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Error { - get { return error_; } - set { - error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as ResponseEnvelope); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(ResponseEnvelope other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (StatusCode != other.StatusCode) return false; - if (RequestId != other.RequestId) return false; - if (ApiUrl != other.ApiUrl) return false; - if(!unknown6_.Equals(other.unknown6_)) return false; - if (!object.Equals(AuthTicket, other.AuthTicket)) return false; - if(!returns_.Equals(other.returns_)) return false; - if (Error != other.Error) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (StatusCode != 0) hash ^= StatusCode.GetHashCode(); - if (RequestId != 0UL) hash ^= RequestId.GetHashCode(); - if (ApiUrl.Length != 0) hash ^= ApiUrl.GetHashCode(); - hash ^= unknown6_.GetHashCode(); - if (authTicket_ != null) hash ^= AuthTicket.GetHashCode(); - hash ^= returns_.GetHashCode(); - if (Error.Length != 0) hash ^= Error.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (StatusCode != 0) { - output.WriteRawTag(8); - output.WriteInt32(StatusCode); - } - if (RequestId != 0UL) { - output.WriteRawTag(16); - output.WriteUInt64(RequestId); - } - if (ApiUrl.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ApiUrl); - } - unknown6_.WriteTo(output, _repeated_unknown6_codec); - if (authTicket_ != null) { - output.WriteRawTag(58); - output.WriteMessage(AuthTicket); - } - returns_.WriteTo(output, _repeated_returns_codec); - if (Error.Length != 0) { - output.WriteRawTag(170, 6); - output.WriteString(Error); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (StatusCode != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(StatusCode); - } - if (RequestId != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RequestId); - } - if (ApiUrl.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ApiUrl); - } - size += unknown6_.CalculateSize(_repeated_unknown6_codec); - if (authTicket_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(AuthTicket); - } - size += returns_.CalculateSize(_repeated_returns_codec); - if (Error.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeStringSize(Error); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(ResponseEnvelope other) { - if (other == null) { - return; - } - if (other.StatusCode != 0) { - StatusCode = other.StatusCode; - } - if (other.RequestId != 0UL) { - RequestId = other.RequestId; - } - if (other.ApiUrl.Length != 0) { - ApiUrl = other.ApiUrl; - } - unknown6_.Add(other.unknown6_); - if (other.authTicket_ != null) { - if (authTicket_ == null) { - authTicket_ = new global::POGOProtos.Networking.Envelopes.AuthTicket(); - } - AuthTicket.MergeFrom(other.AuthTicket); - } - returns_.Add(other.returns_); - if (other.Error.Length != 0) { - Error = other.Error; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 8: { - StatusCode = input.ReadInt32(); - break; - } - case 16: { - RequestId = input.ReadUInt64(); - break; - } - case 26: { - ApiUrl = input.ReadString(); - break; - } - case 50: { - unknown6_.AddEntriesFrom(input, _repeated_unknown6_codec); - break; - } - case 58: { - if (authTicket_ == null) { - authTicket_ = new global::POGOProtos.Networking.Envelopes.AuthTicket(); - } - input.ReadMessage(authTicket_); - break; - } - case 802: { - returns_.AddEntriesFrom(input, _repeated_returns_codec); - break; - } - case 810: { - Error = input.ReadString(); - break; - } - } - } - } - - #region Nested types - /// Container for nested types declared in the ResponseEnvelope message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static partial class Types { - public sealed partial class Unknown7 : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Unknown7()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Envelopes.ResponseEnvelope.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown7() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown7(Unknown7 other) : this() { - unknown71_ = other.unknown71_; - unknown72_ = other.unknown72_; - unknown73_ = other.unknown73_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown7 Clone() { - return new Unknown7(this); - } - - /// Field number for the "unknown71" field. - public const int Unknown71FieldNumber = 1; - private pb::ByteString unknown71_ = pb::ByteString.Empty; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pb::ByteString Unknown71 { - get { return unknown71_; } - set { - unknown71_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "unknown72" field. - public const int Unknown72FieldNumber = 2; - private long unknown72_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long Unknown72 { - get { return unknown72_; } - set { - unknown72_ = value; - } - } - - /// Field number for the "unknown73" field. - public const int Unknown73FieldNumber = 3; - private pb::ByteString unknown73_ = pb::ByteString.Empty; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pb::ByteString Unknown73 { - get { return unknown73_; } - set { - unknown73_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as Unknown7); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Unknown7 other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Unknown71 != other.Unknown71) return false; - if (Unknown72 != other.Unknown72) return false; - if (Unknown73 != other.Unknown73) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (Unknown71.Length != 0) hash ^= Unknown71.GetHashCode(); - if (Unknown72 != 0L) hash ^= Unknown72.GetHashCode(); - if (Unknown73.Length != 0) hash ^= Unknown73.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (Unknown71.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(Unknown71); - } - if (Unknown72 != 0L) { - output.WriteRawTag(16); - output.WriteInt64(Unknown72); - } - if (Unknown73.Length != 0) { - output.WriteRawTag(26); - output.WriteBytes(Unknown73); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Unknown71.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Unknown71); - } - if (Unknown72 != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Unknown72); - } - if (Unknown73.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Unknown73); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Unknown7 other) { - if (other == null) { - return; - } - if (other.Unknown71.Length != 0) { - Unknown71 = other.Unknown71; - } - if (other.Unknown72 != 0L) { - Unknown72 = other.Unknown72; - } - if (other.Unknown73.Length != 0) { - Unknown73 = other.Unknown73; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - Unknown71 = input.ReadBytes(); - break; - } - case 16: { - Unknown72 = input.ReadInt64(); - break; - } - case 26: { - Unknown73 = input.ReadBytes(); - break; - } - } - } - } - - } - - } - #endregion - - } - - public sealed partial class Unknown6Response : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Unknown6Response()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Envelopes.POGOProtosNetworkingEnvelopesReflection.Descriptor.MessageTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown6Response() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown6Response(Unknown6Response other) : this() { - responseType_ = other.responseType_; - Unknown2 = other.unknown2_ != null ? other.Unknown2.Clone() : null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown6Response Clone() { - return new Unknown6Response(this); - } - - /// Field number for the "response_type" field. - public const int ResponseTypeFieldNumber = 1; - private int responseType_; - /// - /// Still don't know what 6 is, but 5 lists items available via IAPs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int ResponseType { - get { return responseType_; } - set { - responseType_ = value; - } - } - - /// Field number for the "unknown2" field. - public const int Unknown2FieldNumber = 2; - private global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2 unknown2_; - /// - /// Response data - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2 Unknown2 { - get { return unknown2_; } - set { - unknown2_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as Unknown6Response); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Unknown6Response other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResponseType != other.ResponseType) return false; - if (!object.Equals(Unknown2, other.Unknown2)) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (ResponseType != 0) hash ^= ResponseType.GetHashCode(); - if (unknown2_ != null) hash ^= Unknown2.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (ResponseType != 0) { - output.WriteRawTag(8); - output.WriteInt32(ResponseType); - } - if (unknown2_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Unknown2); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (ResponseType != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResponseType); - } - if (unknown2_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Unknown2); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Unknown6Response other) { - if (other == null) { - return; - } - if (other.ResponseType != 0) { - ResponseType = other.ResponseType; - } - if (other.unknown2_ != null) { - if (unknown2_ == null) { - unknown2_ = new global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2(); - } - Unknown2.MergeFrom(other.Unknown2); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 8: { - ResponseType = input.ReadInt32(); - break; - } - case 18: { - if (unknown2_ == null) { - unknown2_ = new global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2(); - } - input.ReadMessage(unknown2_); - break; - } - } - } - } - - #region Nested types - /// Container for nested types declared in the Unknown6Response message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static partial class Types { - public sealed partial class Unknown2 : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Unknown2()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Envelopes.Unknown6Response.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown2() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown2(Unknown2 other) : this() { - unknown1_ = other.unknown1_; - items_ = other.items_.Clone(); - playerCurrencies_ = other.playerCurrencies_.Clone(); - unknown4_ = other.unknown4_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown2 Clone() { - return new Unknown2(this); - } - - /// Field number for the "unknown1" field. - public const int Unknown1FieldNumber = 1; - private ulong unknown1_; - /// - /// Maybe status? It's always 1 (success), so it's probably that. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong Unknown1 { - get { return unknown1_; } - set { - unknown1_ = value; - } - } - - /// Field number for the "items" field. - public const int ItemsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_items_codec - = pb::FieldCodec.ForMessage(18, global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2.Types.StoreItem.Parser); - private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); - /// - /// Items to show in the shop - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Items { - get { return items_; } - } - - /// Field number for the "player_currencies" field. - public const int PlayerCurrenciesFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_playerCurrencies_codec - = pb::FieldCodec.ForMessage(26, global::POGOProtos.Data.Player.Currency.Parser); - private readonly pbc::RepeatedField playerCurrencies_ = new pbc::RepeatedField(); - /// - /// currencies that player has at the moment - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField PlayerCurrencies { - get { return playerCurrencies_; } - } - - /// Field number for the "unknown4" field. - public const int Unknown4FieldNumber = 4; - private string unknown4_ = ""; - /// - /// Some base64 encoded stuff... - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Unknown4 { - get { return unknown4_; } - set { - unknown4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as Unknown2); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Unknown2 other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Unknown1 != other.Unknown1) return false; - if(!items_.Equals(other.items_)) return false; - if(!playerCurrencies_.Equals(other.playerCurrencies_)) return false; - if (Unknown4 != other.Unknown4) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (Unknown1 != 0UL) hash ^= Unknown1.GetHashCode(); - hash ^= items_.GetHashCode(); - hash ^= playerCurrencies_.GetHashCode(); - if (Unknown4.Length != 0) hash ^= Unknown4.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (Unknown1 != 0UL) { - output.WriteRawTag(8); - output.WriteUInt64(Unknown1); - } - items_.WriteTo(output, _repeated_items_codec); - playerCurrencies_.WriteTo(output, _repeated_playerCurrencies_codec); - if (Unknown4.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Unknown4); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Unknown1 != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Unknown1); - } - size += items_.CalculateSize(_repeated_items_codec); - size += playerCurrencies_.CalculateSize(_repeated_playerCurrencies_codec); - if (Unknown4.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Unknown4); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Unknown2 other) { - if (other == null) { - return; - } - if (other.Unknown1 != 0UL) { - Unknown1 = other.Unknown1; - } - items_.Add(other.items_); - playerCurrencies_.Add(other.playerCurrencies_); - if (other.Unknown4.Length != 0) { - Unknown4 = other.Unknown4; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 8: { - Unknown1 = input.ReadUInt64(); - break; - } - case 18: { - items_.AddEntriesFrom(input, _repeated_items_codec); - break; - } - case 26: { - playerCurrencies_.AddEntriesFrom(input, _repeated_playerCurrencies_codec); - break; - } - case 34: { - Unknown4 = input.ReadString(); - break; - } - } - } - } - - #region Nested types - /// Container for nested types declared in the Unknown2 message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static partial class Types { - public sealed partial class StoreItem : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StoreItem()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public StoreItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public StoreItem(StoreItem other) : this() { - itemId_ = other.itemId_; - isIap_ = other.isIap_; - CurrencyToBuy = other.currencyToBuy_ != null ? other.CurrencyToBuy.Clone() : null; - YieldsCurrency = other.yieldsCurrency_ != null ? other.YieldsCurrency.Clone() : null; - YieldsItem = other.yieldsItem_ != null ? other.YieldsItem.Clone() : null; - tags_ = other.tags_.Clone(); - unknown7_ = other.unknown7_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public StoreItem Clone() { - return new StoreItem(this); - } - - /// Field number for the "item_id" field. - public const int ItemIdFieldNumber = 1; - private string itemId_ = ""; - /// - /// Internal ID (probably for Google Play/App Store) example: "pgorelease.incenseordinary.1" - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string ItemId { - get { return itemId_; } - set { - itemId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "is_iap" field. - public const int IsIapFieldNumber = 2; - private bool isIap_; - /// - /// If true, this item is bought with real currency (USD, etc.) through the Play/App Store instead of Pokecoins - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool IsIap { - get { return isIap_; } - set { - isIap_ = value; - } - } - - /// Field number for the "currency_to_buy" field. - public const int CurrencyToBuyFieldNumber = 3; - private global::POGOProtos.Data.Player.Currency currencyToBuy_; - /// - /// This defines how much the item costs (with the exception of items that cost real money like Pokecoins, that's defined in the respective store) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Data.Player.Currency CurrencyToBuy { - get { return currencyToBuy_; } - set { - currencyToBuy_ = value; - } - } - - /// Field number for the "yields_currency" field. - public const int YieldsCurrencyFieldNumber = 4; - private global::POGOProtos.Data.Player.Currency yieldsCurrency_; - /// - /// When bought, this IAP will yield this much currency - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Data.Player.Currency YieldsCurrency { - get { return yieldsCurrency_; } - set { - yieldsCurrency_ = value; - } - } - - /// Field number for the "yields_item" field. - public const int YieldsItemFieldNumber = 5; - private global::POGOProtos.Inventory.Item.ItemData yieldsItem_; - /// - /// The item and count of such item that this IAP will yield - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Inventory.Item.ItemData YieldsItem { - get { return yieldsItem_; } - set { - yieldsItem_ = value; - } - } - - /// Field number for the "tags" field. - public const int TagsFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_tags_codec - = pb::FieldCodec.ForMessage(50, global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2.Types.StoreItem.Types.Tag.Parser); - private readonly pbc::RepeatedField tags_ = new pbc::RepeatedField(); - /// - /// Stuff like SORT:12, CATEGORY:ITEMS - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Tags { - get { return tags_; } - } - - /// Field number for the "unknown7" field. - public const int Unknown7FieldNumber = 7; - private int unknown7_; - /// - /// Possibly something to toggle visibility in the store/purchasibility? - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Unknown7 { - get { return unknown7_; } - set { - unknown7_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as StoreItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(StoreItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ItemId != other.ItemId) return false; - if (IsIap != other.IsIap) return false; - if (!object.Equals(CurrencyToBuy, other.CurrencyToBuy)) return false; - if (!object.Equals(YieldsCurrency, other.YieldsCurrency)) return false; - if (!object.Equals(YieldsItem, other.YieldsItem)) return false; - if(!tags_.Equals(other.tags_)) return false; - if (Unknown7 != other.Unknown7) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (ItemId.Length != 0) hash ^= ItemId.GetHashCode(); - if (IsIap != false) hash ^= IsIap.GetHashCode(); - if (currencyToBuy_ != null) hash ^= CurrencyToBuy.GetHashCode(); - if (yieldsCurrency_ != null) hash ^= YieldsCurrency.GetHashCode(); - if (yieldsItem_ != null) hash ^= YieldsItem.GetHashCode(); - hash ^= tags_.GetHashCode(); - if (Unknown7 != 0) hash ^= Unknown7.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (ItemId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ItemId); - } - if (IsIap != false) { - output.WriteRawTag(16); - output.WriteBool(IsIap); - } - if (currencyToBuy_ != null) { - output.WriteRawTag(26); - output.WriteMessage(CurrencyToBuy); - } - if (yieldsCurrency_ != null) { - output.WriteRawTag(34); - output.WriteMessage(YieldsCurrency); - } - if (yieldsItem_ != null) { - output.WriteRawTag(42); - output.WriteMessage(YieldsItem); - } - tags_.WriteTo(output, _repeated_tags_codec); - if (Unknown7 != 0) { - output.WriteRawTag(56); - output.WriteInt32(Unknown7); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (ItemId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ItemId); - } - if (IsIap != false) { - size += 1 + 1; - } - if (currencyToBuy_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrencyToBuy); - } - if (yieldsCurrency_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(YieldsCurrency); - } - if (yieldsItem_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(YieldsItem); - } - size += tags_.CalculateSize(_repeated_tags_codec); - if (Unknown7 != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Unknown7); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(StoreItem other) { - if (other == null) { - return; - } - if (other.ItemId.Length != 0) { - ItemId = other.ItemId; - } - if (other.IsIap != false) { - IsIap = other.IsIap; - } - if (other.currencyToBuy_ != null) { - if (currencyToBuy_ == null) { - currencyToBuy_ = new global::POGOProtos.Data.Player.Currency(); - } - CurrencyToBuy.MergeFrom(other.CurrencyToBuy); - } - if (other.yieldsCurrency_ != null) { - if (yieldsCurrency_ == null) { - yieldsCurrency_ = new global::POGOProtos.Data.Player.Currency(); - } - YieldsCurrency.MergeFrom(other.YieldsCurrency); - } - if (other.yieldsItem_ != null) { - if (yieldsItem_ == null) { - yieldsItem_ = new global::POGOProtos.Inventory.Item.ItemData(); - } - YieldsItem.MergeFrom(other.YieldsItem); - } - tags_.Add(other.tags_); - if (other.Unknown7 != 0) { - Unknown7 = other.Unknown7; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - ItemId = input.ReadString(); - break; - } - case 16: { - IsIap = input.ReadBool(); - break; - } - case 26: { - if (currencyToBuy_ == null) { - currencyToBuy_ = new global::POGOProtos.Data.Player.Currency(); - } - input.ReadMessage(currencyToBuy_); - break; - } - case 34: { - if (yieldsCurrency_ == null) { - yieldsCurrency_ = new global::POGOProtos.Data.Player.Currency(); - } - input.ReadMessage(yieldsCurrency_); - break; - } - case 42: { - if (yieldsItem_ == null) { - yieldsItem_ = new global::POGOProtos.Inventory.Item.ItemData(); - } - input.ReadMessage(yieldsItem_); - break; - } - case 50: { - tags_.AddEntriesFrom(input, _repeated_tags_codec); - break; - } - case 56: { - Unknown7 = input.ReadInt32(); - break; - } - } - } - } - - #region Nested types - /// Container for nested types declared in the StoreItem message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static partial class Types { - public sealed partial class Tag : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Tag()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2.Types.StoreItem.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Tag() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Tag(Tag other) : this() { - key_ = other.key_; - value_ = other.value_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Tag Clone() { - return new Tag(this); - } - - /// Field number for the "key" field. - public const int KeyFieldNumber = 1; - private string key_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Key { - get { return key_; } - set { - key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 2; - private string value_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Value { - get { return value_; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as Tag); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Tag other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Key != other.Key) return false; - if (Value != other.Value) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (Key.Length != 0) hash ^= Key.GetHashCode(); - if (Value.Length != 0) hash ^= Value.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (Key.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Key); - } - if (Value.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Value); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Key.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); - } - if (Value.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Tag other) { - if (other == null) { - return; - } - if (other.Key.Length != 0) { - Key = other.Key; - } - if (other.Value.Length != 0) { - Value = other.Value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - Key = input.ReadString(); - break; - } - case 18: { - Value = input.ReadString(); - break; - } - } - } - } - - } - - } - #endregion - - } - - } - #endregion - - } - - } - #endregion - - } - - public sealed partial class Unknown6 : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Unknown6()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Envelopes.POGOProtosNetworkingEnvelopesReflection.Descriptor.MessageTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown6() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown6(Unknown6 other) : this() { - requestType_ = other.requestType_; - Unknown2 = other.unknown2_ != null ? other.Unknown2.Clone() : null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown6 Clone() { - return new Unknown6(this); - } - - /// Field number for the "request_type" field. - public const int RequestTypeFieldNumber = 1; - private int requestType_; - /// - /// 5 for IAPs, 6 is unknown still - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int RequestType { - get { return requestType_; } - set { - requestType_ = value; - } - } - - /// Field number for the "unknown2" field. - public const int Unknown2FieldNumber = 2; - private global::POGOProtos.Networking.Envelopes.Unknown6.Types.Unknown2 unknown2_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Networking.Envelopes.Unknown6.Types.Unknown2 Unknown2 { - get { return unknown2_; } - set { - unknown2_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as Unknown6); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Unknown6 other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (RequestType != other.RequestType) return false; - if (!object.Equals(Unknown2, other.Unknown2)) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (RequestType != 0) hash ^= RequestType.GetHashCode(); - if (unknown2_ != null) hash ^= Unknown2.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (RequestType != 0) { - output.WriteRawTag(8); - output.WriteInt32(RequestType); - } - if (unknown2_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Unknown2); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (RequestType != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(RequestType); - } - if (unknown2_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Unknown2); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Unknown6 other) { - if (other == null) { - return; - } - if (other.RequestType != 0) { - RequestType = other.RequestType; - } - if (other.unknown2_ != null) { - if (unknown2_ == null) { - unknown2_ = new global::POGOProtos.Networking.Envelopes.Unknown6.Types.Unknown2(); - } - Unknown2.MergeFrom(other.Unknown2); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 8: { - RequestType = input.ReadInt32(); - break; - } - case 18: { - if (unknown2_ == null) { - unknown2_ = new global::POGOProtos.Networking.Envelopes.Unknown6.Types.Unknown2(); - } - input.ReadMessage(unknown2_); - break; - } - } - } - } - - #region Nested types - /// Container for nested types declared in the Unknown6 message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static partial class Types { - public sealed partial class Unknown2 : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Unknown2()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Envelopes.Unknown6.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown2() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown2(Unknown2 other) : this() { - unknown1_ = other.unknown1_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown2 Clone() { - return new Unknown2(this); - } - - /// Field number for the "unknown1" field. - public const int Unknown1FieldNumber = 1; - private pb::ByteString unknown1_ = pb::ByteString.Empty; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pb::ByteString Unknown1 { - get { return unknown1_; } - set { - unknown1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as Unknown2); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Unknown2 other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Unknown1 != other.Unknown1) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (Unknown1.Length != 0) hash ^= Unknown1.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (Unknown1.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(Unknown1); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Unknown1.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Unknown1); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Unknown2 other) { - if (other == null) { - return; - } - if (other.Unknown1.Length != 0) { - Unknown1 = other.Unknown1; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - Unknown1 = input.ReadBytes(); - break; - } - } - } - } - - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Networking/Envelopes/RequestEnvelope.cs b/Networking/Envelopes/RequestEnvelope.cs index cd922c2..ef74223 100644 --- a/Networking/Envelopes/RequestEnvelope.cs +++ b/Networking/Envelopes/RequestEnvelope.cs @@ -23,27 +23,32 @@ static RequestEnvelopeReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjVQT0dPUHJvdG9zL05ldHdvcmtpbmcvRW52ZWxvcGVzL1JlcXVlc3RFbnZl", - "bG9wZS5wcm90bxIfUE9HT1Byb3Rvcy5OZXR3b3JraW5nLkVudmVsb3Blcxos", - "UE9HT1Byb3Rvcy9OZXR3b3JraW5nL1JlcXVlc3RzL1JlcXVlc3QucHJvdG8a", - "MFBPR09Qcm90b3MvTmV0d29ya2luZy9FbnZlbG9wZXMvQXV0aFRpY2tldC5w", - "cm90bxouUE9HT1Byb3Rvcy9OZXR3b3JraW5nL0VudmVsb3Blcy9Vbmtub3du", - "Ni5wcm90byK0BAoPUmVxdWVzdEVudmVsb3BlEhMKC3N0YXR1c19jb2RlGAEg", - "ASgFEhIKCnJlcXVlc3RfaWQYAyABKAQSOQoIcmVxdWVzdHMYBCADKAsyJy5Q", - "T0dPUHJvdG9zLk5ldHdvcmtpbmcuUmVxdWVzdHMuUmVxdWVzdBI7Cgh1bmtu", - "b3duNhgGIAEoCzIpLlBPR09Qcm90b3MuTmV0d29ya2luZy5FbnZlbG9wZXMu", - "VW5rbm93bjYSEAoIbGF0aXR1ZGUYByABKAESEQoJbG9uZ2l0dWRlGAggASgB", - "EhAKCGFsdGl0dWRlGAkgASgBEkwKCWF1dGhfaW5mbxgKIAEoCzI5LlBPR09Q", - "cm90b3MuTmV0d29ya2luZy5FbnZlbG9wZXMuUmVxdWVzdEVudmVsb3BlLkF1", - "dGhJbmZvEkAKC2F1dGhfdGlja2V0GAsgASgLMisuUE9HT1Byb3Rvcy5OZXR3", - "b3JraW5nLkVudmVsb3Blcy5BdXRoVGlja2V0EiEKGW1zX3NpbmNlX2xhc3Rf", - "bG9jYXRpb25maXgYDCABKAMalQEKCEF1dGhJbmZvEhAKCHByb3ZpZGVyGAEg", - "ASgJEkwKBXRva2VuGAIgASgLMj0uUE9HT1Byb3Rvcy5OZXR3b3JraW5nLkVu", - "dmVsb3Blcy5SZXF1ZXN0RW52ZWxvcGUuQXV0aEluZm8uSldUGikKA0pXVBIQ", - "Cghjb250ZW50cxgBIAEoCRIQCgh1bmtub3duMhgCIAEoBWIGcHJvdG8z")); + "bG9wZS5wcm90bxIfUE9HT1Byb3Rvcy5OZXR3b3JraW5nLkVudmVsb3Blcxow", + "UE9HT1Byb3Rvcy9OZXR3b3JraW5nL0VudmVsb3Blcy9BdXRoVGlja2V0LnBy", + "b3RvGjhQT0dPUHJvdG9zL05ldHdvcmtpbmcvUGxhdGZvcm0vUGxhdGZvcm1S", + "ZXF1ZXN0VHlwZS5wcm90bxosUE9HT1Byb3Rvcy9OZXR3b3JraW5nL1JlcXVl", + "c3RzL1JlcXVlc3QucHJvdG8iwwUKD1JlcXVlc3RFbnZlbG9wZRITCgtzdGF0", + "dXNfY29kZRgBIAEoBRISCgpyZXF1ZXN0X2lkGAMgASgEEjkKCHJlcXVlc3Rz", + "GAQgAygLMicuUE9HT1Byb3Rvcy5OZXR3b3JraW5nLlJlcXVlc3RzLlJlcXVl", + "c3QSWwoRcGxhdGZvcm1fcmVxdWVzdHMYBiADKAsyQC5QT0dPUHJvdG9zLk5l", + "dHdvcmtpbmcuRW52ZWxvcGVzLlJlcXVlc3RFbnZlbG9wZS5QbGF0Zm9ybVJl", + "cXVlc3QSEAoIbGF0aXR1ZGUYByABKAESEQoJbG9uZ2l0dWRlGAggASgBEhAK", + "CGFjY3VyYWN5GAkgASgBEkwKCWF1dGhfaW5mbxgKIAEoCzI5LlBPR09Qcm90", + "b3MuTmV0d29ya2luZy5FbnZlbG9wZXMuUmVxdWVzdEVudmVsb3BlLkF1dGhJ", + "bmZvEkAKC2F1dGhfdGlja2V0GAsgASgLMisuUE9HT1Byb3Rvcy5OZXR3b3Jr", + "aW5nLkVudmVsb3Blcy5BdXRoVGlja2V0EiEKGW1zX3NpbmNlX2xhc3RfbG9j", + "YXRpb25maXgYDCABKAMalQEKCEF1dGhJbmZvEhAKCHByb3ZpZGVyGAEgASgJ", + "EkwKBXRva2VuGAIgASgLMj0uUE9HT1Byb3Rvcy5OZXR3b3JraW5nLkVudmVs", + "b3Blcy5SZXF1ZXN0RW52ZWxvcGUuQXV0aEluZm8uSldUGikKA0pXVBIQCghj", + "b250ZW50cxgBIAEoCRIQCgh1bmtub3duMhgCIAEoBRptCg9QbGF0Zm9ybVJl", + "cXVlc3QSQQoEdHlwZRgBIAEoDjIzLlBPR09Qcm90b3MuTmV0d29ya2luZy5Q", + "bGF0Zm9ybS5QbGF0Zm9ybVJlcXVlc3RUeXBlEhcKD3JlcXVlc3RfbWVzc2Fn", + "ZRgCIAEoDGIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::POGOProtos.Networking.Requests.RequestReflection.Descriptor, global::POGOProtos.Networking.Envelopes.AuthTicketReflection.Descriptor, global::POGOProtos.Networking.Envelopes.Unknown6Reflection.Descriptor, }, + new pbr::FileDescriptor[] { global::POGOProtos.Networking.Envelopes.AuthTicketReflection.Descriptor, global::POGOProtos.Networking.Platform.PlatformRequestTypeReflection.Descriptor, global::POGOProtos.Networking.Requests.RequestReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.RequestEnvelope), global::POGOProtos.Networking.Envelopes.RequestEnvelope.Parser, new[]{ "StatusCode", "RequestId", "Requests", "Unknown6", "Latitude", "Longitude", "Altitude", "AuthInfo", "AuthTicket", "MsSinceLastLocationfix" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.RequestEnvelope.Types.AuthInfo), global::POGOProtos.Networking.Envelopes.RequestEnvelope.Types.AuthInfo.Parser, new[]{ "Provider", "Token" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.RequestEnvelope.Types.AuthInfo.Types.JWT), global::POGOProtos.Networking.Envelopes.RequestEnvelope.Types.AuthInfo.Types.JWT.Parser, new[]{ "Contents", "Unknown2" }, null, null, null)})}) + new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.RequestEnvelope), global::POGOProtos.Networking.Envelopes.RequestEnvelope.Parser, new[]{ "StatusCode", "RequestId", "Requests", "PlatformRequests", "Latitude", "Longitude", "Accuracy", "AuthInfo", "AuthTicket", "MsSinceLastLocationfix" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.RequestEnvelope.Types.AuthInfo), global::POGOProtos.Networking.Envelopes.RequestEnvelope.Types.AuthInfo.Parser, new[]{ "Provider", "Token" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.RequestEnvelope.Types.AuthInfo.Types.JWT), global::POGOProtos.Networking.Envelopes.RequestEnvelope.Types.AuthInfo.Types.JWT.Parser, new[]{ "Contents", "Unknown2" }, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.RequestEnvelope.Types.PlatformRequest), global::POGOProtos.Networking.Envelopes.RequestEnvelope.Types.PlatformRequest.Parser, new[]{ "Type", "RequestMessage" }, null, null, null)}) })); } #endregion @@ -77,10 +82,10 @@ public RequestEnvelope(RequestEnvelope other) : this() { statusCode_ = other.statusCode_; requestId_ = other.requestId_; requests_ = other.requests_.Clone(); - Unknown6 = other.unknown6_ != null ? other.Unknown6.Clone() : null; + platformRequests_ = other.platformRequests_.Clone(); latitude_ = other.latitude_; longitude_ = other.longitude_; - altitude_ = other.altitude_; + accuracy_ = other.accuracy_; AuthInfo = other.authInfo_ != null ? other.AuthInfo.Clone() : null; AuthTicket = other.authTicket_ != null ? other.AuthTicket.Clone() : null; msSinceLastLocationfix_ = other.msSinceLastLocationfix_; @@ -123,20 +128,15 @@ public ulong RequestId { get { return requests_; } } - /// Field number for the "unknown6" field. - public const int Unknown6FieldNumber = 6; - private static pb::FieldCodec _repeated_unknown6_codec - = pb::FieldCodec.ForMessage(50, global::POGOProtos.Networking.Envelopes.Unknown6.Parser); - private pbc::RepeatedField unknown6_ = new pbc::RepeatedField(); + /// Field number for the "platform_requests" field. + public const int PlatformRequestsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_platformRequests_codec + = pb::FieldCodec.ForMessage(50, global::POGOProtos.Networking.Envelopes.RequestEnvelope.Types.PlatformRequest.Parser); + private readonly pbc::RepeatedField platformRequests_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Unknown6 { - get { return unknown6_; } - set - { - unknown6_ = value; - } - } - + public pbc::RepeatedField PlatformRequests { + get { return platformRequests_; } + } /// Field number for the "latitude" field. public const int LatitudeFieldNumber = 7; @@ -160,14 +160,14 @@ public double Longitude { } } - /// Field number for the "altitude" field. - public const int AltitudeFieldNumber = 9; - private double altitude_; + /// Field number for the "accuracy" field. + public const int AccuracyFieldNumber = 9; + private double accuracy_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double Altitude { - get { return altitude_; } + public double Accuracy { + get { return accuracy_; } set { - altitude_ = value; + accuracy_ = value; } } @@ -220,10 +220,10 @@ public bool Equals(RequestEnvelope other) { if (StatusCode != other.StatusCode) return false; if (RequestId != other.RequestId) return false; if(!requests_.Equals(other.requests_)) return false; - if (!object.Equals(Unknown6, other.Unknown6)) return false; + if(!platformRequests_.Equals(other.platformRequests_)) return false; if (Latitude != other.Latitude) return false; if (Longitude != other.Longitude) return false; - if (Altitude != other.Altitude) return false; + if (Accuracy != other.Accuracy) return false; if (!object.Equals(AuthInfo, other.AuthInfo)) return false; if (!object.Equals(AuthTicket, other.AuthTicket)) return false; if (MsSinceLastLocationfix != other.MsSinceLastLocationfix) return false; @@ -236,10 +236,10 @@ public override int GetHashCode() { if (StatusCode != 0) hash ^= StatusCode.GetHashCode(); if (RequestId != 0UL) hash ^= RequestId.GetHashCode(); hash ^= requests_.GetHashCode(); - if (unknown6_ != null) hash ^= Unknown6.GetHashCode(); + hash ^= platformRequests_.GetHashCode(); if (Latitude != 0D) hash ^= Latitude.GetHashCode(); if (Longitude != 0D) hash ^= Longitude.GetHashCode(); - if (Altitude != 0D) hash ^= Altitude.GetHashCode(); + if (Accuracy != 0D) hash ^= Accuracy.GetHashCode(); if (authInfo_ != null) hash ^= AuthInfo.GetHashCode(); if (authTicket_ != null) hash ^= AuthTicket.GetHashCode(); if (MsSinceLastLocationfix != 0L) hash ^= MsSinceLastLocationfix.GetHashCode(); @@ -262,11 +262,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteUInt64(RequestId); } requests_.WriteTo(output, _repeated_requests_codec); - unknown6_.WriteTo(output, _repeated_unknown6_codec); - // if (unknown6_ != null) { - // output.WriteRawTag(50); - // output.WriteMessage(Unknown6); - // } + platformRequests_.WriteTo(output, _repeated_platformRequests_codec); if (Latitude != 0D) { output.WriteRawTag(57); output.WriteDouble(Latitude); @@ -275,9 +271,9 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(65); output.WriteDouble(Longitude); } - if (Altitude != 0D) { + if (Accuracy != 0D) { output.WriteRawTag(73); - output.WriteDouble(Altitude); + output.WriteDouble(Accuracy); } if (authInfo_ != null) { output.WriteRawTag(82); @@ -303,17 +299,14 @@ public int CalculateSize() { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RequestId); } size += requests_.CalculateSize(_repeated_requests_codec); - size += unknown6_.CalculateSize(_repeated_unknown6_codec); - // if (unknown6_ != null) { - // size += 1 + pb::CodedOutputStream.ComputeMessageSize(Unknown6); - // } - if (Latitude != 0D) { + size += platformRequests_.CalculateSize(_repeated_platformRequests_codec); + if (Latitude != 0D) { size += 1 + 8; } if (Longitude != 0D) { size += 1 + 8; } - if (Altitude != 0D) { + if (Accuracy != 0D) { size += 1 + 8; } if (authInfo_ != null) { @@ -340,21 +333,15 @@ public void MergeFrom(RequestEnvelope other) { RequestId = other.RequestId; } requests_.Add(other.requests_); - unknown6_.Add(other.unknown6_); - // if (other.unknown6_ != null) { - // if (unknown6_ == null) { - // unknown6_ = new global::POGOProtos.Networking.Envelopes.Unknown6(); - // } - // Unknown6.MergeFrom(other.Unknown6); -// } + platformRequests_.Add(other.platformRequests_); if (other.Latitude != 0D) { Latitude = other.Latitude; } if (other.Longitude != 0D) { Longitude = other.Longitude; } - if (other.Altitude != 0D) { - Altitude = other.Altitude; + if (other.Accuracy != 0D) { + Accuracy = other.Accuracy; } if (other.authInfo_ != null) { if (authInfo_ == null) { @@ -394,16 +381,10 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 50: { - unknown6_.AddEntriesFrom(input, _repeated_unknown6_codec); - break; - } - // if (unknown6_ == null) { - // unknown6_ = new global::POGOProtos.Networking.Envelopes.Unknown6(); - // } - // input.ReadMessage(unknown6_); - // break; - // } - case 57: { + platformRequests_.AddEntriesFrom(input, _repeated_platformRequests_codec); + break; + } + case 57: { Latitude = input.ReadDouble(); break; } @@ -412,7 +393,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 73: { - Altitude = input.ReadDouble(); + Accuracy = input.ReadDouble(); break; } case 82: { @@ -744,6 +725,151 @@ public void MergeFrom(pb::CodedInputStream input) { } + public sealed partial class PlatformRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlatformRequest()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::POGOProtos.Networking.Envelopes.RequestEnvelope.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public PlatformRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public PlatformRequest(PlatformRequest other) : this() { + type_ = other.type_; + requestMessage_ = other.requestMessage_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public PlatformRequest Clone() { + return new PlatformRequest(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private global::POGOProtos.Networking.Platform.PlatformRequestType type_ = 0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::POGOProtos.Networking.Platform.PlatformRequestType Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "request_message" field. + public const int RequestMessageFieldNumber = 2; + private pb::ByteString requestMessage_ = pb::ByteString.Empty; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString RequestMessage { + get { return requestMessage_; } + set { + requestMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as PlatformRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(PlatformRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (RequestMessage != other.RequestMessage) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Type != 0) hash ^= Type.GetHashCode(); + if (RequestMessage.Length != 0) hash ^= RequestMessage.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Type != 0) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (RequestMessage.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(RequestMessage); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (RequestMessage.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(RequestMessage); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(PlatformRequest other) { + if (other == null) { + return; + } + if (other.Type != 0) { + Type = other.Type; + } + if (other.RequestMessage.Length != 0) { + RequestMessage = other.RequestMessage; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 8: { + type_ = (global::POGOProtos.Networking.Platform.PlatformRequestType) input.ReadEnum(); + break; + } + case 18: { + RequestMessage = input.ReadBytes(); + break; + } + } + } + } + + } + } #endregion diff --git a/Networking/Envelopes/ResponseEnvelope.cs b/Networking/Envelopes/ResponseEnvelope.cs index 15f1147..5b7a1d4 100644 --- a/Networking/Envelopes/ResponseEnvelope.cs +++ b/Networking/Envelopes/ResponseEnvelope.cs @@ -25,17 +25,26 @@ static ResponseEnvelopeReflection() { "CjZQT0dPUHJvdG9zL05ldHdvcmtpbmcvRW52ZWxvcGVzL1Jlc3BvbnNlRW52", "ZWxvcGUucHJvdG8SH1BPR09Qcm90b3MuTmV0d29ya2luZy5FbnZlbG9wZXMa", "MFBPR09Qcm90b3MvTmV0d29ya2luZy9FbnZlbG9wZXMvQXV0aFRpY2tldC5w", - "cm90bxo2UE9HT1Byb3Rvcy9OZXR3b3JraW5nL0VudmVsb3Blcy9Vbmtub3du", - "NlJlc3BvbnNlLnByb3RvIvMBChBSZXNwb25zZUVudmVsb3BlEhMKC3N0YXR1", - "c19jb2RlGAEgASgFEhIKCnJlcXVlc3RfaWQYAiABKAQSDwoHYXBpX3VybBgD", - "IAEoCRJDCgh1bmtub3duNhgGIAMoCzIxLlBPR09Qcm90b3MuTmV0d29ya2lu", - "Zy5FbnZlbG9wZXMuVW5rbm93bjZSZXNwb25zZRJACgthdXRoX3RpY2tldBgH", - "IAEoCzIrLlBPR09Qcm90b3MuTmV0d29ya2luZy5FbnZlbG9wZXMuQXV0aFRp", - "Y2tldBIPCgdyZXR1cm5zGGQgAygMEg0KBWVycm9yGGUgASgJYgZwcm90bzM=")); + "cm90bxo4UE9HT1Byb3Rvcy9OZXR3b3JraW5nL1BsYXRmb3JtL1BsYXRmb3Jt", + "UmVxdWVzdFR5cGUucHJvdG8i9gQKEFJlc3BvbnNlRW52ZWxvcGUSUQoLc3Rh", + "dHVzX2NvZGUYASABKA4yPC5QT0dPUHJvdG9zLk5ldHdvcmtpbmcuRW52ZWxv", + "cGVzLlJlc3BvbnNlRW52ZWxvcGUuU3RhdHVzQ29kZRISCgpyZXF1ZXN0X2lk", + "GAIgASgEEg8KB2FwaV91cmwYAyABKAkSXAoQcGxhdGZvcm1fcmV0dXJucxgG", + "IAMoCzJCLlBPR09Qcm90b3MuTmV0d29ya2luZy5FbnZlbG9wZXMuUmVzcG9u", + "c2VFbnZlbG9wZS5QbGF0Zm9ybVJlc3BvbnNlEkAKC2F1dGhfdGlja2V0GAcg", + "ASgLMisuUE9HT1Byb3Rvcy5OZXR3b3JraW5nLkVudmVsb3Blcy5BdXRoVGlj", + "a2V0Eg8KB3JldHVybnMYZCADKAwSDQoFZXJyb3IYZSABKAkaZwoQUGxhdGZv", + "cm1SZXNwb25zZRJBCgR0eXBlGAEgASgOMjMuUE9HT1Byb3Rvcy5OZXR3b3Jr", + "aW5nLlBsYXRmb3JtLlBsYXRmb3JtUmVxdWVzdFR5cGUSEAoIcmVzcG9uc2UY", + "AiABKAwiwAEKClN0YXR1c0NvZGUSCwoHVU5LTk9XThAAEgYKAk9LEAESGgoW", + "T0tfUlBDX1VSTF9JTl9SRVNQT05TRRACEg8KC0JBRF9SRVFVRVNUEAMSEwoP", + "SU5WQUxJRF9SRVFVRVNUEDMSHAoYSU5WQUxJRF9QTEFURk9STV9SRVFVRVNU", + "EDQSDAoIUkVESVJFQ1QQNRIXChNTRVNTSU9OX0lOVkFMSURBVEVEEGQSFgoS", + "SU5WQUxJRF9BVVRIX1RPS0VOEGZiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::POGOProtos.Networking.Envelopes.AuthTicketReflection.Descriptor, global::POGOProtos.Networking.Envelopes.Unknown6ResponseReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::POGOProtos.Networking.Envelopes.AuthTicketReflection.Descriptor, global::POGOProtos.Networking.Platform.PlatformRequestTypeReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.ResponseEnvelope), global::POGOProtos.Networking.Envelopes.ResponseEnvelope.Parser, new[]{ "StatusCode", "RequestId", "ApiUrl", "Unknown6", "AuthTicket", "Returns", "Error" }, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.ResponseEnvelope), global::POGOProtos.Networking.Envelopes.ResponseEnvelope.Parser, new[]{ "StatusCode", "RequestId", "ApiUrl", "PlatformReturns", "AuthTicket", "Returns", "Error" }, null, new[]{ typeof(global::POGOProtos.Networking.Envelopes.ResponseEnvelope.Types.StatusCode) }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.ResponseEnvelope.Types.PlatformResponse), global::POGOProtos.Networking.Envelopes.ResponseEnvelope.Types.PlatformResponse.Parser, new[]{ "Type", "Response" }, null, null, null)}) })); } #endregion @@ -69,7 +78,7 @@ public ResponseEnvelope(ResponseEnvelope other) : this() { statusCode_ = other.statusCode_; requestId_ = other.requestId_; apiUrl_ = other.apiUrl_; - unknown6_ = other.unknown6_.Clone(); + platformReturns_ = other.platformReturns_.Clone(); AuthTicket = other.authTicket_ != null ? other.AuthTicket.Clone() : null; returns_ = other.returns_.Clone(); error_ = other.error_; @@ -82,9 +91,9 @@ public ResponseEnvelope Clone() { /// Field number for the "status_code" field. public const int StatusCodeFieldNumber = 1; - private int statusCode_; + private global::POGOProtos.Networking.Envelopes.ResponseEnvelope.Types.StatusCode statusCode_ = 0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int StatusCode { + public global::POGOProtos.Networking.Envelopes.ResponseEnvelope.Types.StatusCode StatusCode { get { return statusCode_; } set { statusCode_ = value; @@ -113,14 +122,14 @@ public string ApiUrl { } } - /// Field number for the "unknown6" field. - public const int Unknown6FieldNumber = 6; - private static readonly pb::FieldCodec _repeated_unknown6_codec - = pb::FieldCodec.ForMessage(50, global::POGOProtos.Networking.Envelopes.Unknown6Response.Parser); - private readonly pbc::RepeatedField unknown6_ = new pbc::RepeatedField(); + /// Field number for the "platform_returns" field. + public const int PlatformReturnsFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_platformReturns_codec + = pb::FieldCodec.ForMessage(50, global::POGOProtos.Networking.Envelopes.ResponseEnvelope.Types.PlatformResponse.Parser); + private readonly pbc::RepeatedField platformReturns_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Unknown6 { - get { return unknown6_; } + public pbc::RepeatedField PlatformReturns { + get { return platformReturns_; } } /// Field number for the "auth_ticket" field. @@ -171,7 +180,7 @@ public bool Equals(ResponseEnvelope other) { if (StatusCode != other.StatusCode) return false; if (RequestId != other.RequestId) return false; if (ApiUrl != other.ApiUrl) return false; - if(!unknown6_.Equals(other.unknown6_)) return false; + if(!platformReturns_.Equals(other.platformReturns_)) return false; if (!object.Equals(AuthTicket, other.AuthTicket)) return false; if(!returns_.Equals(other.returns_)) return false; if (Error != other.Error) return false; @@ -184,7 +193,7 @@ public override int GetHashCode() { if (StatusCode != 0) hash ^= StatusCode.GetHashCode(); if (RequestId != 0UL) hash ^= RequestId.GetHashCode(); if (ApiUrl.Length != 0) hash ^= ApiUrl.GetHashCode(); - hash ^= unknown6_.GetHashCode(); + hash ^= platformReturns_.GetHashCode(); if (authTicket_ != null) hash ^= AuthTicket.GetHashCode(); hash ^= returns_.GetHashCode(); if (Error.Length != 0) hash ^= Error.GetHashCode(); @@ -200,7 +209,7 @@ public override string ToString() { public void WriteTo(pb::CodedOutputStream output) { if (StatusCode != 0) { output.WriteRawTag(8); - output.WriteInt32(StatusCode); + output.WriteEnum((int) StatusCode); } if (RequestId != 0UL) { output.WriteRawTag(16); @@ -210,7 +219,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(26); output.WriteString(ApiUrl); } - unknown6_.WriteTo(output, _repeated_unknown6_codec); + platformReturns_.WriteTo(output, _repeated_platformReturns_codec); if (authTicket_ != null) { output.WriteRawTag(58); output.WriteMessage(AuthTicket); @@ -226,7 +235,7 @@ public void WriteTo(pb::CodedOutputStream output) { public int CalculateSize() { int size = 0; if (StatusCode != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(StatusCode); + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StatusCode); } if (RequestId != 0UL) { size += 1 + pb::CodedOutputStream.ComputeUInt64Size(RequestId); @@ -234,7 +243,7 @@ public int CalculateSize() { if (ApiUrl.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ApiUrl); } - size += unknown6_.CalculateSize(_repeated_unknown6_codec); + size += platformReturns_.CalculateSize(_repeated_platformReturns_codec); if (authTicket_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AuthTicket); } @@ -259,7 +268,7 @@ public void MergeFrom(ResponseEnvelope other) { if (other.ApiUrl.Length != 0) { ApiUrl = other.ApiUrl; } - unknown6_.Add(other.unknown6_); + platformReturns_.Add(other.platformReturns_); if (other.authTicket_ != null) { if (authTicket_ == null) { authTicket_ = new global::POGOProtos.Networking.Envelopes.AuthTicket(); @@ -281,7 +290,7 @@ public void MergeFrom(pb::CodedInputStream input) { input.SkipLastField(); break; case 8: { - StatusCode = input.ReadInt32(); + statusCode_ = (global::POGOProtos.Networking.Envelopes.ResponseEnvelope.Types.StatusCode) input.ReadEnum(); break; } case 16: { @@ -293,7 +302,7 @@ public void MergeFrom(pb::CodedInputStream input) { break; } case 50: { - unknown6_.AddEntriesFrom(input, _repeated_unknown6_codec); + platformReturns_.AddEntriesFrom(input, _repeated_platformReturns_codec); break; } case 58: { @@ -315,6 +324,194 @@ public void MergeFrom(pb::CodedInputStream input) { } } + #region Nested types + /// Container for nested types declared in the ResponseEnvelope message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static partial class Types { + public enum StatusCode { + [pbr::OriginalName("UNKNOWN")] Unknown = 0, + /// + /// valid response with no api url + /// + [pbr::OriginalName("OK")] Ok = 1, + /// + /// the response envelope has api_url set and this response is valid + /// + [pbr::OriginalName("OK_RPC_URL_IN_RESPONSE")] OkRpcUrlInResponse = 2, + /// + /// bad request + /// + [pbr::OriginalName("BAD_REQUEST")] BadRequest = 3, + /// + /// using unimplemented request or corrupt request + /// + [pbr::OriginalName("INVALID_REQUEST")] InvalidRequest = 51, + /// + /// invalid platform request or corrupt platform request + /// + [pbr::OriginalName("INVALID_PLATFORM_REQUEST")] InvalidPlatformRequest = 52, + /// + /// a new rpc endpoint is available and you should redirect to there + /// + [pbr::OriginalName("REDIRECT")] Redirect = 53, + /// + /// occurs when you send blank authinfo, or sending nonsense timings (ie LocationFix.timestampSnapshot == Signature.timestampSinceStart) + /// + [pbr::OriginalName("SESSION_INVALIDATED")] SessionInvalidated = 100, + /// + /// occurs when the login token is invalid + /// + [pbr::OriginalName("INVALID_AUTH_TOKEN")] InvalidAuthToken = 102, + } + + public sealed partial class PlatformResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PlatformResponse()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::POGOProtos.Networking.Envelopes.ResponseEnvelope.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public PlatformResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public PlatformResponse(PlatformResponse other) : this() { + type_ = other.type_; + response_ = other.response_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public PlatformResponse Clone() { + return new PlatformResponse(this); + } + + /// Field number for the "type" field. + public const int TypeFieldNumber = 1; + private global::POGOProtos.Networking.Platform.PlatformRequestType type_ = 0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::POGOProtos.Networking.Platform.PlatformRequestType Type { + get { return type_; } + set { + type_ = value; + } + } + + /// Field number for the "response" field. + public const int ResponseFieldNumber = 2; + private pb::ByteString response_ = pb::ByteString.Empty; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString Response { + get { return response_; } + set { + response_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as PlatformResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(PlatformResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Type != other.Type) return false; + if (Response != other.Response) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Type != 0) hash ^= Type.GetHashCode(); + if (Response.Length != 0) hash ^= Response.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Type != 0) { + output.WriteRawTag(8); + output.WriteEnum((int) Type); + } + if (Response.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Response); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Type != 0) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); + } + if (Response.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Response); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(PlatformResponse other) { + if (other == null) { + return; + } + if (other.Type != 0) { + Type = other.Type; + } + if (other.Response.Length != 0) { + Response = other.Response; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 8: { + type_ = (global::POGOProtos.Networking.Platform.PlatformRequestType) input.ReadEnum(); + break; + } + case 18: { + Response = input.ReadBytes(); + break; + } + } + } + } + + } + + } + #endregion + } #endregion diff --git a/Networking/Envelopes/SignalAgglomUpdates.cs b/Networking/Envelopes/SignalAgglomUpdates.cs new file mode 100644 index 0000000..7b4ac1c --- /dev/null +++ b/Networking/Envelopes/SignalAgglomUpdates.cs @@ -0,0 +1,3149 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: POGOProtos/Networking/Envelopes/SignalAgglomUpdates.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace POGOProtos.Networking.Envelopes { + + /// Holder for reflection information generated from POGOProtos/Networking/Envelopes/SignalAgglomUpdates.proto + public static partial class SignalAgglomUpdatesReflection { + + #region Descriptor + /// File descriptor for POGOProtos/Networking/Envelopes/SignalAgglomUpdates.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SignalAgglomUpdatesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjlQT0dPUHJvdG9zL05ldHdvcmtpbmcvRW52ZWxvcGVzL1NpZ25hbEFnZ2xv", + "bVVwZGF0ZXMucHJvdG8SH1BPR09Qcm90b3MuTmV0d29ya2luZy5FbnZlbG9w", + "ZXMi0BIKE1NpZ25hbEFnZ2xvbVVwZGF0ZXMSPwoGZmllbGQxGAEgAygLMi8u", + "UE9HT1Byb3Rvcy5OZXR3b3JraW5nLkVudmVsb3Blcy5Vbmtub3duTWVzc2Fn", + "ZRIgChh0aW1lc3RhbXBfbXNfc2luY2Vfc3RhcnQYAiABKAMSDgoGZmllbGQz", + "GAMgASgJEl0KEGxvY2F0aW9uX3VwZGF0ZXMYBCADKAsyQy5QT0dPUHJvdG9z", + "Lk5ldHdvcmtpbmcuRW52ZWxvcGVzLlNpZ25hbEFnZ2xvbVVwZGF0ZXMuTG9j", + "YXRpb25VcGRhdGUSXQoQYW5kcm9pZF9ncHNfaW5mbxgFIAMoCzJDLlBPR09Q", + "cm90b3MuTmV0d29ya2luZy5FbnZlbG9wZXMuU2lnbmFsQWdnbG9tVXBkYXRl", + "cy5BbmRyb2lkR3BzSW5mbxI/CgZmaWVsZDYYBiADKAsyLy5QT0dPUHJvdG9z", + "Lk5ldHdvcmtpbmcuRW52ZWxvcGVzLlVua25vd25NZXNzYWdlElkKDnNlbnNv", + "cl91cGRhdGVzGAcgASgLMkEuUE9HT1Byb3Rvcy5OZXR3b3JraW5nLkVudmVs", + "b3Blcy5TaWduYWxBZ2dsb21VcGRhdGVzLlNlbnNvclVwZGF0ZRJUCgtkZXZp", + "Y2VfaW5mbxgIIAEoCzI/LlBPR09Qcm90b3MuTmV0d29ya2luZy5FbnZlbG9w", + "ZXMuU2lnbmFsQWdnbG9tVXBkYXRlcy5EZXZpY2VJbmZvElsKD2lvc19kZXZp", + "Y2VfaW5mbxgJIAEoCzJCLlBPR09Qcm90b3MuTmV0d29ya2luZy5FbnZlbG9w", + "ZXMuU2lnbmFsQWdnbG9tVXBkYXRlcy5JT1NEZXZpY2VJbmZvEiMKG2xvY2F0", + "aW9uX2hhc2hfYnlfdG9rZW5fc2VlZBgKIAEoBRIPCgdmaWVsZDExGAsgASgI", + "Eg8KB2ZpZWxkMTIYDCABKAgSDwoHZmllbGQxMxgNIAEoBRIPCgdmaWVsZDE0", + "GA4gASgFEg8KB2ZpZWxkMTUYDyABKAkSDwoHZmllbGQxNhgQIAEoBRIPCgdm", + "aWVsZDE3GBEgASgJEg8KB2ZpZWxkMTgYEiABKAkSDwoHZmllbGQxORgTIAEo", + "CBIVCg1sb2NhdGlvbl9oYXNoGBQgASgFEg8KB2ZpZWxkMjEYFSABKAgSDwoH", + "ZmllbGQyMhgWIAEoDBIaChJlcG9jaF90aW1lc3RhbXBfbXMYFyABKAQSFgoO", + "cmVxdWVzdF9oYXNoZXMYGCADKAMSDwoHZmllbGQyNRgZIAEoBBqPAgoOTG9j", + "YXRpb25VcGRhdGUSDAoEbmFtZRgBIAEoCRIUCgx0aW1lc3RhbXBfbXMYAiAB", + "KAMSEAoIYWx0aXR1ZGUYBCABKAESEAoIbGF0aXR1ZGUYDSABKAESEQoJbG9u", + "Z2l0dWRlGA4gASgBEhQKDGRldmljZV9zcGVlZBgSIAEoARIVCg1kZXZpY2Vf", + "Y291cnNlGBQgASgBEhsKE2hvcml6b250YWxfYWNjdXJhY3kYFSABKAESGQoR", + "dmVydGljYWxfYWNjdXJhY3kYFiABKAESFwoPcHJvdmlkZXJfc3RhdHVzGBog", + "ASgFEg0KBWZsb29yGBsgASgDEhUKDWxvY2F0aW9uX3R5cGUYHCABKAUapgEK", + "DUlPU0RldmljZUluZm8SDQoFYm9vbDEYASABKAgSDQoFYm9vbDIYAiABKAgS", + "DQoFYm9vbDMYAyABKAgSDQoFYm9vbDQYBCABKAgSDQoFYm9vbDUYBSABKAgS", + "DQoFYm9vbDYYBiABKAgSDQoFYm9vbDcYByABKAgSDQoFYm9vbDgYCCABKAgS", + "DQoFYm9vbDkYCSABKAgSDgoGYm9vbDEwGAogASgIGrEDCgxTZW5zb3JVcGRh", + "dGUSEQoJdGltZXN0YW1wGAEgASgEEhYKDmFjY2VsZXJhdGlvbl94GAMgASgB", + "EhYKDmFjY2VsZXJhdGlvbl95GAQgASgBEhYKDmFjY2VsZXJhdGlvbl96GAUg", + "ASgBEhgKEG1hZ25ldGljX2ZpZWxkX3gYBiABKAESGAoQbWFnbmV0aWNfZmll", + "bGRfeRgHIAEoARIYChBtYWduZXRpY19maWVsZF96GAggASgBEh8KF21hZ25l", + "dGljX2ZpZWxkX2FjY3VyYWN5GAkgASgFEhYKDmF0dGl0dWRlX3BpdGNoGAog", + "ASgBEhQKDGF0dGl0dWRlX3lhdxgLIAEoARIVCg1hdHRpdHVkZV9yb2xsGAwg", + "ASgBEhcKD3JvdGF0aW9uX3JhdGVfeBgNIAEoARIXCg9yb3RhdGlvbl9yYXRl", + "X3kYDiABKAESFwoPcm90YXRpb25fcmF0ZV96GA8gASgBEhEKCWdyYXZpdHlf", + "eBgQIAEoARIRCglncmF2aXR5X3kYESABKAESEQoJZ3Jhdml0eV96GBIgASgB", + "Eg4KBnN0YXR1cxgTIAEoBRrbAgoKRGV2aWNlSW5mbxIRCglkZXZpY2VfaWQY", + "ASABKAkSGgoSYW5kcm9pZF9ib2FyZF9uYW1lGAIgASgJEhoKEmFuZHJvaWRf", + "Ym9vdGxvYWRlchgDIAEoCRIUCgxkZXZpY2VfYnJhbmQYBCABKAkSFAoMZGV2", + "aWNlX21vZGVsGAUgASgJEh8KF2RldmljZV9tb2RlbF9pZGVudGlmaWVyGAYg", + "ASgJEhoKEmRldmljZV9jb21tc19tb2RlbBgHIAEoCRIdChVoYXJkd2FyZV9t", + "YW51ZmFjdHVyZXIYCCABKAkSFgoOaGFyZHdhcmVfbW9kZWwYCSABKAkSFgoO", + "ZmlybXdhcmVfYnJhbmQYCiABKAkSFQoNZmlybXdhcmVfdGFncxgMIAEoCRIV", + "Cg1maXJtd2FyZV90eXBlGA0gASgJEhwKFGZpcm13YXJlX2ZpbmdlcnByaW50", + "GA4gASgJGq8BCg5BbmRyb2lkR3BzSW5mbxITCgt0aW1lX3RvX2ZpeBgBIAEo", + "BBIWCg5zYXRlbGxpdGVzX3BybhgCIAMoBRIPCgdhemltdXRoGAMgAygCEhEK", + "CWVsZXZhdGlvbhgEIAMoAhILCgNzbnIYBSADKAISEwoLaGFzX2FsbWFuYWMY", + "BiADKAgSFQoNaGFzX2VwaGVtZXJpcxgHIAMoCBITCgt1c2VkX2luX2ZpeBgI", + "IAMoCCIQCg5Vbmtub3duTWVzc2FnZWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates), global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Parser, new[]{ "Field1", "TimestampMsSinceStart", "Field3", "LocationUpdates", "AndroidGpsInfo", "Field6", "SensorUpdates", "DeviceInfo", "IosDeviceInfo", "LocationHashByTokenSeed", "Field11", "Field12", "Field13", "Field14", "Field15", "Field16", "Field17", "Field18", "Field19", "LocationHash", "Field21", "Field22", "EpochTimestampMs", "RequestHashes", "Field25" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Types.LocationUpdate), global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Types.LocationUpdate.Parser, new[]{ "Name", "TimestampMs", "Altitude", "Latitude", "Longitude", "DeviceSpeed", "DeviceCourse", "HorizontalAccuracy", "VerticalAccuracy", "ProviderStatus", "Floor", "LocationType" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Types.IOSDeviceInfo), global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Types.IOSDeviceInfo.Parser, new[]{ "Bool1", "Bool2", "Bool3", "Bool4", "Bool5", "Bool6", "Bool7", "Bool8", "Bool9", "Bool10" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Types.SensorUpdate), global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Types.SensorUpdate.Parser, new[]{ "Timestamp", "AccelerationX", "AccelerationY", "AccelerationZ", "MagneticFieldX", "MagneticFieldY", "MagneticFieldZ", "MagneticFieldAccuracy", "AttitudePitch", "AttitudeYaw", "AttitudeRoll", "RotationRateX", "RotationRateY", "RotationRateZ", "GravityX", "GravityY", "GravityZ", "Status" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Types.DeviceInfo), global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Types.DeviceInfo.Parser, new[]{ "DeviceId", "AndroidBoardName", "AndroidBootloader", "DeviceBrand", "DeviceModel", "DeviceModelIdentifier", "DeviceCommsModel", "HardwareManufacturer", "HardwareModel", "FirmwareBrand", "FirmwareTags", "FirmwareType", "FirmwareFingerprint" }, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Types.AndroidGpsInfo), global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Types.AndroidGpsInfo.Parser, new[]{ "TimeToFix", "SatellitesPrn", "Azimuth", "Elevation", "Snr", "HasAlmanac", "HasEphemeris", "UsedInFix" }, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.UnknownMessage), global::POGOProtos.Networking.Envelopes.UnknownMessage.Parser, null, null, null, null) + })); + } + #endregion + + } + #region Messages + /// + /// Note: Some int32's in these messages may actually be float values, but due to how things are serialized, and little backing-data + /// I can't confirm them being floats or not. All others are confirmed. + /// Note2: In the native lib, it does not look like they actually serialize to float. They use float datatypes in native structures, but serialize to doubles + /// Note3: We really shouldn't call this 'Signature' it's an agglomerated update packet for device reading changes + request hashes + /// + public sealed partial class SignalAgglomUpdates : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SignalAgglomUpdates()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::POGOProtos.Networking.Envelopes.SignalAgglomUpdatesReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SignalAgglomUpdates() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SignalAgglomUpdates(SignalAgglomUpdates other) : this() { + field1_ = other.field1_.Clone(); + timestampMsSinceStart_ = other.timestampMsSinceStart_; + field3_ = other.field3_; + locationUpdates_ = other.locationUpdates_.Clone(); + androidGpsInfo_ = other.androidGpsInfo_.Clone(); + field6_ = other.field6_.Clone(); + SensorUpdates = other.sensorUpdates_ != null ? other.SensorUpdates.Clone() : null; + DeviceInfo = other.deviceInfo_ != null ? other.DeviceInfo.Clone() : null; + IosDeviceInfo = other.iosDeviceInfo_ != null ? other.IosDeviceInfo.Clone() : null; + locationHashByTokenSeed_ = other.locationHashByTokenSeed_; + field11_ = other.field11_; + field12_ = other.field12_; + field13_ = other.field13_; + field14_ = other.field14_; + field15_ = other.field15_; + field16_ = other.field16_; + field17_ = other.field17_; + field18_ = other.field18_; + field19_ = other.field19_; + locationHash_ = other.locationHash_; + field21_ = other.field21_; + field22_ = other.field22_; + epochTimestampMs_ = other.epochTimestampMs_; + requestHashes_ = other.requestHashes_.Clone(); + field25_ = other.field25_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SignalAgglomUpdates Clone() { + return new SignalAgglomUpdates(this); + } + + /// Field number for the "field1" field. + public const int Field1FieldNumber = 1; + private static readonly pb::FieldCodec _repeated_field1_codec + = pb::FieldCodec.ForMessage(10, global::POGOProtos.Networking.Envelopes.UnknownMessage.Parser); + private readonly pbc::RepeatedField field1_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Field1 { + get { return field1_; } + } + + /// Field number for the "timestamp_ms_since_start" field. + public const int TimestampMsSinceStartFieldNumber = 2; + private ulong timestampMsSinceStart_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong TimestampMsSinceStart { + get { return timestampMsSinceStart_; } + set { + timestampMsSinceStart_ = value; + } + } + + /// Field number for the "field3" field. + public const int Field3FieldNumber = 3; + private string field3_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Field3 { + get { return field3_; } + set { + field3_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "location_updates" field. + public const int LocationUpdatesFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_locationUpdates_codec + = pb::FieldCodec.ForMessage(34, global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Types.LocationUpdate.Parser); + private readonly pbc::RepeatedField locationUpdates_ = new pbc::RepeatedField(); + /// + /// Multiple location updates at a time. This is all the updates since the last time we sent a request + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField LocationUpdates { + get { return locationUpdates_; } + } + + /// Field number for the "android_gps_info" field. + public const int AndroidGpsInfoFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_androidGpsInfo_codec + = pb::FieldCodec.ForMessage(42, global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Types.AndroidGpsInfo.Parser); + private readonly pbc::RepeatedField androidGpsInfo_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField AndroidGpsInfo { + get { return androidGpsInfo_; } + } + + /// Field number for the "field6" field. + public const int Field6FieldNumber = 6; + private static readonly pb::FieldCodec _repeated_field6_codec + = pb::FieldCodec.ForMessage(50, global::POGOProtos.Networking.Envelopes.UnknownMessage.Parser); + private readonly pbc::RepeatedField field6_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Field6 { + get { return field6_; } + } + + /// Field number for the "sensor_updates" field. + public const int SensorUpdatesFieldNumber = 7; + private global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Types.SensorUpdate sensorUpdates_; + /// + /// All the sensor updates since the last time we sent a request. (Seems to actually be throttled to 1-3 at a time) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Types.SensorUpdate SensorUpdates { + get { return sensorUpdates_; } + set { + sensorUpdates_ = value; + } + } + + /// Field number for the "device_info" field. + public const int DeviceInfoFieldNumber = 8; + private global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Types.DeviceInfo deviceInfo_; + /// + /// device info - need to find this still to verify everything + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Types.DeviceInfo DeviceInfo { + get { return deviceInfo_; } + set { + deviceInfo_ = value; + } + } + + /// Field number for the "ios_device_info" field. + public const int IosDeviceInfoFieldNumber = 9; + private global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Types.IOSDeviceInfo iosDeviceInfo_; + /// + /// iOS only - likely device capabilities? (Or even simpler being iOS device version flags) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Types.IOSDeviceInfo IosDeviceInfo { + get { return iosDeviceInfo_; } + set { + iosDeviceInfo_ = value; + } + } + + /// Field number for the "location_hash_by_token_seed" field. + public const int LocationHashByTokenSeedFieldNumber = 10; + private uint locationHashByTokenSeed_; + /// + /// Hashed location using the auth token as the seed (hashed auth token -> location hash seed) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint LocationHashByTokenSeed { + get { return locationHashByTokenSeed_; } + set { + locationHashByTokenSeed_ = value; + } + } + + /// Field number for the "field11" field. + public const int Field11FieldNumber = 11; + private bool field11_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Field11 { + get { return field11_; } + set { + field11_ = value; + } + } + + /// Field number for the "field12" field. + public const int Field12FieldNumber = 12; + private bool field12_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Field12 { + get { return field12_; } + set { + field12_ = value; + } + } + + /// Field number for the "field13" field. + public const int Field13FieldNumber = 13; + private int field13_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Field13 { + get { return field13_; } + set { + field13_ = value; + } + } + + /// Field number for the "field14" field. + public const int Field14FieldNumber = 14; + private int field14_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Field14 { + get { return field14_; } + set { + field14_ = value; + } + } + + /// Field number for the "field15" field. + public const int Field15FieldNumber = 15; + private string field15_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Field15 { + get { return field15_; } + set { + field15_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "field16" field. + public const int Field16FieldNumber = 16; + private int field16_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Field16 { + get { return field16_; } + set { + field16_ = value; + } + } + + /// Field number for the "field17" field. + public const int Field17FieldNumber = 17; + private string field17_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Field17 { + get { return field17_; } + set { + field17_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "field18" field. + public const int Field18FieldNumber = 18; + private string field18_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Field18 { + get { return field18_; } + set { + field18_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "field19" field. + public const int Field19FieldNumber = 19; + private bool field19_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Field19 { + get { return field19_; } + set { + field19_ = value; + } + } + + /// Field number for the "location_hash" field. + public const int LocationHashFieldNumber = 20; + private uint locationHash_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint LocationHash { + get { return locationHash_; } + set { + locationHash_ = value; + } + } + + /// Field number for the "field21" field. + public const int Field21FieldNumber = 21; + private bool field21_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Field21 { + get { return field21_; } + set { + field21_ = value; + } + } + + /// Field number for the "field22" field. + public const int Field22FieldNumber = 22; + private pb::ByteString field22_ = pb::ByteString.Empty; + /// + /// replay check - Changes every 5 minutes or so. Generation unknown but pointed to by 0001B8614 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString Field22 { + get { return field22_; } + set { + field22_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "epoch_timestamp_ms" field. + public const int EpochTimestampMsFieldNumber = 23; + private ulong epochTimestampMs_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong EpochTimestampMs { + get { return epochTimestampMs_; } + set { + epochTimestampMs_ = value; + } + } + + /// Field number for the "request_hashes" field. + public const ulong RequestHashesFieldNumber = 24; + private static readonly pb::FieldCodec _repeated_requestHashes_codec + = pb::FieldCodec.ForUInt64(194); + private readonly pbc::RepeatedField requestHashes_ = new pbc::RepeatedField(); + /// + /// xxHash64 of the requests being sent with this agglom + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField RequestHashes { + get { return requestHashes_; } + } + + /// Field number for the "field25" field. + public const int Field25FieldNumber = 25; + private ulong field25_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Field25 { + get { return field25_; } + set { + field25_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SignalAgglomUpdates); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SignalAgglomUpdates other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!field1_.Equals(other.field1_)) return false; + if (TimestampMsSinceStart != other.TimestampMsSinceStart) return false; + if (Field3 != other.Field3) return false; + if(!locationUpdates_.Equals(other.locationUpdates_)) return false; + if(!androidGpsInfo_.Equals(other.androidGpsInfo_)) return false; + if(!field6_.Equals(other.field6_)) return false; + if (!object.Equals(SensorUpdates, other.SensorUpdates)) return false; + if (!object.Equals(DeviceInfo, other.DeviceInfo)) return false; + if (!object.Equals(IosDeviceInfo, other.IosDeviceInfo)) return false; + if (LocationHashByTokenSeed != other.LocationHashByTokenSeed) return false; + if (Field11 != other.Field11) return false; + if (Field12 != other.Field12) return false; + if (Field13 != other.Field13) return false; + if (Field14 != other.Field14) return false; + if (Field15 != other.Field15) return false; + if (Field16 != other.Field16) return false; + if (Field17 != other.Field17) return false; + if (Field18 != other.Field18) return false; + if (Field19 != other.Field19) return false; + if (LocationHash != other.LocationHash) return false; + if (Field21 != other.Field21) return false; + if (Field22 != other.Field22) return false; + if (EpochTimestampMs != other.EpochTimestampMs) return false; + if(!requestHashes_.Equals(other.requestHashes_)) return false; + if (Field25 != other.Field25) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= field1_.GetHashCode(); + if (TimestampMsSinceStart != 0L) hash ^= TimestampMsSinceStart.GetHashCode(); + if (Field3.Length != 0) hash ^= Field3.GetHashCode(); + hash ^= locationUpdates_.GetHashCode(); + hash ^= androidGpsInfo_.GetHashCode(); + hash ^= field6_.GetHashCode(); + if (sensorUpdates_ != null) hash ^= SensorUpdates.GetHashCode(); + if (deviceInfo_ != null) hash ^= DeviceInfo.GetHashCode(); + if (iosDeviceInfo_ != null) hash ^= IosDeviceInfo.GetHashCode(); + if (LocationHashByTokenSeed != 0) hash ^= LocationHashByTokenSeed.GetHashCode(); + if (Field11 != false) hash ^= Field11.GetHashCode(); + if (Field12 != false) hash ^= Field12.GetHashCode(); + if (Field13 != 0) hash ^= Field13.GetHashCode(); + if (Field14 != 0) hash ^= Field14.GetHashCode(); + if (Field15.Length != 0) hash ^= Field15.GetHashCode(); + if (Field16 != 0) hash ^= Field16.GetHashCode(); + if (Field17.Length != 0) hash ^= Field17.GetHashCode(); + if (Field18.Length != 0) hash ^= Field18.GetHashCode(); + if (Field19 != false) hash ^= Field19.GetHashCode(); + if (LocationHash != 0) hash ^= LocationHash.GetHashCode(); + if (Field21 != false) hash ^= Field21.GetHashCode(); + if (Field22.Length != 0) hash ^= Field22.GetHashCode(); + if (EpochTimestampMs != 0UL) hash ^= EpochTimestampMs.GetHashCode(); + hash ^= requestHashes_.GetHashCode(); + if (Field25 != 0UL) hash ^= Field25.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + field1_.WriteTo(output, _repeated_field1_codec); + if (TimestampMsSinceStart != 0L) { + output.WriteRawTag(16); + output.WriteUInt64(TimestampMsSinceStart); + } + if (Field3.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Field3); + } + locationUpdates_.WriteTo(output, _repeated_locationUpdates_codec); + androidGpsInfo_.WriteTo(output, _repeated_androidGpsInfo_codec); + field6_.WriteTo(output, _repeated_field6_codec); + if (sensorUpdates_ != null) { + output.WriteRawTag(58); + output.WriteMessage(SensorUpdates); + } + if (deviceInfo_ != null) { + output.WriteRawTag(66); + output.WriteMessage(DeviceInfo); + } + if (iosDeviceInfo_ != null) { + output.WriteRawTag(74); + output.WriteMessage(IosDeviceInfo); + } + if (LocationHashByTokenSeed != 0) { + output.WriteRawTag(80); + output.WriteUInt32(LocationHashByTokenSeed); + } + if (Field11 != false) { + output.WriteRawTag(88); + output.WriteBool(Field11); + } + if (Field12 != false) { + output.WriteRawTag(96); + output.WriteBool(Field12); + } + if (Field13 != 0) { + output.WriteRawTag(104); + output.WriteInt32(Field13); + } + if (Field14 != 0) { + output.WriteRawTag(112); + output.WriteInt32(Field14); + } + if (Field15.Length != 0) { + output.WriteRawTag(122); + output.WriteString(Field15); + } + if (Field16 != 0) { + output.WriteRawTag(128, 1); + output.WriteInt32(Field16); + } + if (Field17.Length != 0) { + output.WriteRawTag(138, 1); + output.WriteString(Field17); + } + if (Field18.Length != 0) { + output.WriteRawTag(146, 1); + output.WriteString(Field18); + } + if (Field19 != false) { + output.WriteRawTag(152, 1); + output.WriteBool(Field19); + } + if (LocationHash != 0) { + output.WriteRawTag(160, 1); + output.WriteUInt32(LocationHash); + } + if (Field21 != false) { + output.WriteRawTag(168, 1); + output.WriteBool(Field21); + } + if (Field22.Length != 0) { + output.WriteRawTag(178, 1); + output.WriteBytes(Field22); + } + if (EpochTimestampMs != 0UL) { + output.WriteRawTag(184, 1); + output.WriteUInt64(EpochTimestampMs); + } + requestHashes_.WriteTo(output, _repeated_requestHashes_codec); + if (Field25 != 0UL) { + output.WriteRawTag(200, 1); + output.WriteUInt64(Field25); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += field1_.CalculateSize(_repeated_field1_codec); + if (TimestampMsSinceStart != 0L) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TimestampMsSinceStart); + } + if (Field3.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Field3); + } + size += locationUpdates_.CalculateSize(_repeated_locationUpdates_codec); + size += androidGpsInfo_.CalculateSize(_repeated_androidGpsInfo_codec); + size += field6_.CalculateSize(_repeated_field6_codec); + if (sensorUpdates_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SensorUpdates); + } + if (deviceInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceInfo); + } + if (iosDeviceInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(IosDeviceInfo); + } + if (LocationHashByTokenSeed != 0) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LocationHashByTokenSeed); + } + if (Field11 != false) { + size += 1 + 1; + } + if (Field12 != false) { + size += 1 + 1; + } + if (Field13 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field13); + } + if (Field14 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Field14); + } + if (Field15.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Field15); + } + if (Field16 != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Field16); + } + if (Field17.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Field17); + } + if (Field18.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeStringSize(Field18); + } + if (Field19 != false) { + size += 2 + 1; + } + if (LocationHash != 0) { + size += 2 + pb::CodedOutputStream.ComputeUInt32Size(LocationHash); + } + if (Field21 != false) { + size += 2 + 1; + } + if (Field22.Length != 0) { + size += 2 + pb::CodedOutputStream.ComputeBytesSize(Field22); + } + if (EpochTimestampMs != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(EpochTimestampMs); + } + size += requestHashes_.CalculateSize(_repeated_requestHashes_codec); + if (Field25 != 0UL) { + size += 2 + pb::CodedOutputStream.ComputeUInt64Size(Field25); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SignalAgglomUpdates other) { + if (other == null) { + return; + } + field1_.Add(other.field1_); + if (other.TimestampMsSinceStart != 0L) { + TimestampMsSinceStart = other.TimestampMsSinceStart; + } + if (other.Field3.Length != 0) { + Field3 = other.Field3; + } + locationUpdates_.Add(other.locationUpdates_); + androidGpsInfo_.Add(other.androidGpsInfo_); + field6_.Add(other.field6_); + if (other.sensorUpdates_ != null) { + if (sensorUpdates_ == null) { + sensorUpdates_ = new global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Types.SensorUpdate(); + } + SensorUpdates.MergeFrom(other.SensorUpdates); + } + if (other.deviceInfo_ != null) { + if (deviceInfo_ == null) { + deviceInfo_ = new global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Types.DeviceInfo(); + } + DeviceInfo.MergeFrom(other.DeviceInfo); + } + if (other.iosDeviceInfo_ != null) { + if (iosDeviceInfo_ == null) { + iosDeviceInfo_ = new global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Types.IOSDeviceInfo(); + } + IosDeviceInfo.MergeFrom(other.IosDeviceInfo); + } + if (other.LocationHashByTokenSeed != 0) { + LocationHashByTokenSeed = other.LocationHashByTokenSeed; + } + if (other.Field11 != false) { + Field11 = other.Field11; + } + if (other.Field12 != false) { + Field12 = other.Field12; + } + if (other.Field13 != 0) { + Field13 = other.Field13; + } + if (other.Field14 != 0) { + Field14 = other.Field14; + } + if (other.Field15.Length != 0) { + Field15 = other.Field15; + } + if (other.Field16 != 0) { + Field16 = other.Field16; + } + if (other.Field17.Length != 0) { + Field17 = other.Field17; + } + if (other.Field18.Length != 0) { + Field18 = other.Field18; + } + if (other.Field19 != false) { + Field19 = other.Field19; + } + if (other.LocationHash != 0) { + LocationHash = other.LocationHash; + } + if (other.Field21 != false) { + Field21 = other.Field21; + } + if (other.Field22.Length != 0) { + Field22 = other.Field22; + } + if (other.EpochTimestampMs != 0UL) { + EpochTimestampMs = other.EpochTimestampMs; + } + requestHashes_.Add(other.requestHashes_); + if (other.Field25 != 0UL) { + Field25 = other.Field25; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 10: { + field1_.AddEntriesFrom(input, _repeated_field1_codec); + break; + } + case 16: { + TimestampMsSinceStart = input.ReadUInt64(); + break; + } + case 26: { + Field3 = input.ReadString(); + break; + } + case 34: { + locationUpdates_.AddEntriesFrom(input, _repeated_locationUpdates_codec); + break; + } + case 42: { + androidGpsInfo_.AddEntriesFrom(input, _repeated_androidGpsInfo_codec); + break; + } + case 50: { + field6_.AddEntriesFrom(input, _repeated_field6_codec); + break; + } + case 58: { + if (sensorUpdates_ == null) { + sensorUpdates_ = new global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Types.SensorUpdate(); + } + input.ReadMessage(sensorUpdates_); + break; + } + case 66: { + if (deviceInfo_ == null) { + deviceInfo_ = new global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Types.DeviceInfo(); + } + input.ReadMessage(deviceInfo_); + break; + } + case 74: { + if (iosDeviceInfo_ == null) { + iosDeviceInfo_ = new global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Types.IOSDeviceInfo(); + } + input.ReadMessage(iosDeviceInfo_); + break; + } + case 80: { + LocationHashByTokenSeed = input.ReadUInt32(); + break; + } + case 88: { + Field11 = input.ReadBool(); + break; + } + case 96: { + Field12 = input.ReadBool(); + break; + } + case 104: { + Field13 = input.ReadInt32(); + break; + } + case 112: { + Field14 = input.ReadInt32(); + break; + } + case 122: { + Field15 = input.ReadString(); + break; + } + case 128: { + Field16 = input.ReadInt32(); + break; + } + case 138: { + Field17 = input.ReadString(); + break; + } + case 146: { + Field18 = input.ReadString(); + break; + } + case 152: { + Field19 = input.ReadBool(); + break; + } + case 160: { + LocationHash = input.ReadUInt32(); + break; + } + case 168: { + Field21 = input.ReadBool(); + break; + } + case 178: { + Field22 = input.ReadBytes(); + break; + } + case 184: { + EpochTimestampMs = input.ReadUInt64(); + break; + } + case 194: + case 192: { + requestHashes_.AddEntriesFrom(input, _repeated_requestHashes_codec); + break; + } + case 200: { + Field25 = input.ReadUInt64(); + break; + } + } + } + } + + #region Nested types + /// Container for nested types declared in the SignalAgglomUpdates message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static partial class Types { + /// + /// 100% - Reference iOS lib "LocationUpdate" structure for bridge + /// + public sealed partial class LocationUpdate : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocationUpdate()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public LocationUpdate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public LocationUpdate(LocationUpdate other) : this() { + name_ = other.name_; + timestampMs_ = other.timestampMs_; + altitude_ = other.altitude_; + latitude_ = other.latitude_; + longitude_ = other.longitude_; + deviceSpeed_ = other.deviceSpeed_; + deviceCourse_ = other.deviceCourse_; + horizontalAccuracy_ = other.horizontalAccuracy_; + verticalAccuracy_ = other.verticalAccuracy_; + providerStatus_ = other.providerStatus_; + floor_ = other.floor_; + locationType_ = other.locationType_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public LocationUpdate Clone() { + return new LocationUpdate(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// "network", "gps", "fused" - only these 3 values (com.nianticlabs.location.NianticLocationManager.class) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "timestamp_ms" field. + public const int TimestampMsFieldNumber = 2; + private long timestampMs_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long TimestampMs { + get { return timestampMs_; } + set { + timestampMs_ = value; + } + } + + /// Field number for the "altitude" field. + public const int AltitudeFieldNumber = 4; + private double altitude_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double Altitude { + get { return altitude_; } + set { + altitude_ = value; + } + } + + /// Field number for the "latitude" field. + public const int LatitudeFieldNumber = 13; + private double latitude_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double Latitude { + get { return latitude_; } + set { + latitude_ = value; + } + } + + /// Field number for the "longitude" field. + public const int LongitudeFieldNumber = 14; + private double longitude_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double Longitude { + get { return longitude_; } + set { + longitude_ = value; + } + } + + /// Field number for the "device_speed" field. + public const int DeviceSpeedFieldNumber = 18; + private double deviceSpeed_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double DeviceSpeed { + get { return deviceSpeed_; } + set { + deviceSpeed_ = value; + } + } + + /// Field number for the "device_course" field. + public const int DeviceCourseFieldNumber = 20; + private double deviceCourse_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double DeviceCourse { + get { return deviceCourse_; } + set { + deviceCourse_ = value; + } + } + + /// Field number for the "horizontal_accuracy" field. + public const int HorizontalAccuracyFieldNumber = 21; + private double horizontalAccuracy_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double HorizontalAccuracy { + get { return horizontalAccuracy_; } + set { + horizontalAccuracy_ = value; + } + } + + /// Field number for the "vertical_accuracy" field. + public const int VerticalAccuracyFieldNumber = 22; + private double verticalAccuracy_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double VerticalAccuracy { + get { return verticalAccuracy_; } + set { + verticalAccuracy_ = value; + } + } + + /// Field number for the "provider_status" field. + public const int ProviderStatusFieldNumber = 26; + private int providerStatus_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ProviderStatus { + get { return providerStatus_; } + set { + providerStatus_ = value; + } + } + + /// Field number for the "floor" field. + public const int FloorFieldNumber = 27; + private long floor_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long Floor { + get { return floor_; } + set { + floor_ = value; + } + } + + /// Field number for the "location_type" field. + public const int LocationTypeFieldNumber = 28; + private int locationType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int LocationType { + get { return locationType_; } + set { + locationType_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as LocationUpdate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(LocationUpdate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (TimestampMs != other.TimestampMs) return false; + if (Altitude != other.Altitude) return false; + if (Latitude != other.Latitude) return false; + if (Longitude != other.Longitude) return false; + if (DeviceSpeed != other.DeviceSpeed) return false; + if (DeviceCourse != other.DeviceCourse) return false; + if (HorizontalAccuracy != other.HorizontalAccuracy) return false; + if (VerticalAccuracy != other.VerticalAccuracy) return false; + if (ProviderStatus != other.ProviderStatus) return false; + if (Floor != other.Floor) return false; + if (LocationType != other.LocationType) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (TimestampMs != 0L) hash ^= TimestampMs.GetHashCode(); + if (Altitude != 0D) hash ^= Altitude.GetHashCode(); + if (Latitude != 0D) hash ^= Latitude.GetHashCode(); + if (Longitude != 0D) hash ^= Longitude.GetHashCode(); + if (DeviceSpeed != 0D) hash ^= DeviceSpeed.GetHashCode(); + if (DeviceCourse != 0D) hash ^= DeviceCourse.GetHashCode(); + if (HorizontalAccuracy != 0D) hash ^= HorizontalAccuracy.GetHashCode(); + if (VerticalAccuracy != 0D) hash ^= VerticalAccuracy.GetHashCode(); + if (ProviderStatus != 0) hash ^= ProviderStatus.GetHashCode(); + if (Floor != 0L) hash ^= Floor.GetHashCode(); + if (LocationType != 0) hash ^= LocationType.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (TimestampMs != 0L) { + output.WriteRawTag(16); + output.WriteInt64(TimestampMs); + } + if (Altitude != 0D) { + output.WriteRawTag(33); + output.WriteDouble(Altitude); + } + if (Latitude != 0D) { + output.WriteRawTag(105); + output.WriteDouble(Latitude); + } + if (Longitude != 0D) { + output.WriteRawTag(113); + output.WriteDouble(Longitude); + } + if (DeviceSpeed != 0D) { + output.WriteRawTag(145, 1); + output.WriteDouble(DeviceSpeed); + } + if (DeviceCourse != 0D) { + output.WriteRawTag(161, 1); + output.WriteDouble(DeviceCourse); + } + if (HorizontalAccuracy != 0D) { + output.WriteRawTag(169, 1); + output.WriteDouble(HorizontalAccuracy); + } + if (VerticalAccuracy != 0D) { + output.WriteRawTag(177, 1); + output.WriteDouble(VerticalAccuracy); + } + if (ProviderStatus != 0) { + output.WriteRawTag(208, 1); + output.WriteInt32(ProviderStatus); + } + if (Floor != 0L) { + output.WriteRawTag(216, 1); + output.WriteInt64(Floor); + } + if (LocationType != 0) { + output.WriteRawTag(224, 1); + output.WriteInt32(LocationType); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (TimestampMs != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TimestampMs); + } + if (Altitude != 0D) { + size += 1 + 8; + } + if (Latitude != 0D) { + size += 1 + 8; + } + if (Longitude != 0D) { + size += 1 + 8; + } + if (DeviceSpeed != 0D) { + size += 2 + 8; + } + if (DeviceCourse != 0D) { + size += 2 + 8; + } + if (HorizontalAccuracy != 0D) { + size += 2 + 8; + } + if (VerticalAccuracy != 0D) { + size += 2 + 8; + } + if (ProviderStatus != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(ProviderStatus); + } + if (Floor != 0L) { + size += 2 + pb::CodedOutputStream.ComputeInt64Size(Floor); + } + if (LocationType != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(LocationType); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(LocationUpdate other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.TimestampMs != 0L) { + TimestampMs = other.TimestampMs; + } + if (other.Altitude != 0D) { + Altitude = other.Altitude; + } + if (other.Latitude != 0D) { + Latitude = other.Latitude; + } + if (other.Longitude != 0D) { + Longitude = other.Longitude; + } + if (other.DeviceSpeed != 0D) { + DeviceSpeed = other.DeviceSpeed; + } + if (other.DeviceCourse != 0D) { + DeviceCourse = other.DeviceCourse; + } + if (other.HorizontalAccuracy != 0D) { + HorizontalAccuracy = other.HorizontalAccuracy; + } + if (other.VerticalAccuracy != 0D) { + VerticalAccuracy = other.VerticalAccuracy; + } + if (other.ProviderStatus != 0) { + ProviderStatus = other.ProviderStatus; + } + if (other.Floor != 0L) { + Floor = other.Floor; + } + if (other.LocationType != 0) { + LocationType = other.LocationType; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 10: { + Name = input.ReadString(); + break; + } + case 16: { + TimestampMs = input.ReadInt64(); + break; + } + case 33: { + Altitude = input.ReadDouble(); + break; + } + case 105: { + Latitude = input.ReadDouble(); + break; + } + case 113: { + Longitude = input.ReadDouble(); + break; + } + case 145: { + DeviceSpeed = input.ReadDouble(); + break; + } + case 161: { + DeviceCourse = input.ReadDouble(); + break; + } + case 169: { + HorizontalAccuracy = input.ReadDouble(); + break; + } + case 177: { + VerticalAccuracy = input.ReadDouble(); + break; + } + case 208: { + ProviderStatus = input.ReadInt32(); + break; + } + case 216: { + Floor = input.ReadInt64(); + break; + } + case 224: { + LocationType = input.ReadInt32(); + break; + } + } + } + } + + } + + /// + /// iOS only + /// + public sealed partial class IOSDeviceInfo : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IOSDeviceInfo()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Descriptor.NestedTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IOSDeviceInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IOSDeviceInfo(IOSDeviceInfo other) : this() { + bool1_ = other.bool1_; + bool2_ = other.bool2_; + bool3_ = other.bool3_; + bool4_ = other.bool4_; + bool5_ = other.bool5_; + bool6_ = other.bool6_; + bool7_ = other.bool7_; + bool8_ = other.bool8_; + bool9_ = other.bool9_; + bool10_ = other.bool10_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public IOSDeviceInfo Clone() { + return new IOSDeviceInfo(this); + } + + /// Field number for the "bool1" field. + public const int Bool1FieldNumber = 1; + private bool bool1_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Bool1 { + get { return bool1_; } + set { + bool1_ = value; + } + } + + /// Field number for the "bool2" field. + public const int Bool2FieldNumber = 2; + private bool bool2_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Bool2 { + get { return bool2_; } + set { + bool2_ = value; + } + } + + /// Field number for the "bool3" field. + public const int Bool3FieldNumber = 3; + private bool bool3_; + /// + /// 1 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Bool3 { + get { return bool3_; } + set { + bool3_ = value; + } + } + + /// Field number for the "bool4" field. + public const int Bool4FieldNumber = 4; + private bool bool4_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Bool4 { + get { return bool4_; } + set { + bool4_ = value; + } + } + + /// Field number for the "bool5" field. + public const int Bool5FieldNumber = 5; + private bool bool5_; + /// + /// 1 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Bool5 { + get { return bool5_; } + set { + bool5_ = value; + } + } + + /// Field number for the "bool6" field. + public const int Bool6FieldNumber = 6; + private bool bool6_; + /// + /// 1 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Bool6 { + get { return bool6_; } + set { + bool6_ = value; + } + } + + /// Field number for the "bool7" field. + public const int Bool7FieldNumber = 7; + private bool bool7_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Bool7 { + get { return bool7_; } + set { + bool7_ = value; + } + } + + /// Field number for the "bool8" field. + public const int Bool8FieldNumber = 8; + private bool bool8_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Bool8 { + get { return bool8_; } + set { + bool8_ = value; + } + } + + /// Field number for the "bool9" field. + public const int Bool9FieldNumber = 9; + private bool bool9_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Bool9 { + get { return bool9_; } + set { + bool9_ = value; + } + } + + /// Field number for the "bool10" field. + public const int Bool10FieldNumber = 10; + private bool bool10_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Bool10 { + get { return bool10_; } + set { + bool10_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as IOSDeviceInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(IOSDeviceInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Bool1 != other.Bool1) return false; + if (Bool2 != other.Bool2) return false; + if (Bool3 != other.Bool3) return false; + if (Bool4 != other.Bool4) return false; + if (Bool5 != other.Bool5) return false; + if (Bool6 != other.Bool6) return false; + if (Bool7 != other.Bool7) return false; + if (Bool8 != other.Bool8) return false; + if (Bool9 != other.Bool9) return false; + if (Bool10 != other.Bool10) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Bool1 != false) hash ^= Bool1.GetHashCode(); + if (Bool2 != false) hash ^= Bool2.GetHashCode(); + if (Bool3 != false) hash ^= Bool3.GetHashCode(); + if (Bool4 != false) hash ^= Bool4.GetHashCode(); + if (Bool5 != false) hash ^= Bool5.GetHashCode(); + if (Bool6 != false) hash ^= Bool6.GetHashCode(); + if (Bool7 != false) hash ^= Bool7.GetHashCode(); + if (Bool8 != false) hash ^= Bool8.GetHashCode(); + if (Bool9 != false) hash ^= Bool9.GetHashCode(); + if (Bool10 != false) hash ^= Bool10.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Bool1 != false) { + output.WriteRawTag(8); + output.WriteBool(Bool1); + } + if (Bool2 != false) { + output.WriteRawTag(16); + output.WriteBool(Bool2); + } + if (Bool3 != false) { + output.WriteRawTag(24); + output.WriteBool(Bool3); + } + if (Bool4 != false) { + output.WriteRawTag(32); + output.WriteBool(Bool4); + } + if (Bool5 != false) { + output.WriteRawTag(40); + output.WriteBool(Bool5); + } + if (Bool6 != false) { + output.WriteRawTag(48); + output.WriteBool(Bool6); + } + if (Bool7 != false) { + output.WriteRawTag(56); + output.WriteBool(Bool7); + } + if (Bool8 != false) { + output.WriteRawTag(64); + output.WriteBool(Bool8); + } + if (Bool9 != false) { + output.WriteRawTag(72); + output.WriteBool(Bool9); + } + if (Bool10 != false) { + output.WriteRawTag(80); + output.WriteBool(Bool10); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Bool1 != false) { + size += 1 + 1; + } + if (Bool2 != false) { + size += 1 + 1; + } + if (Bool3 != false) { + size += 1 + 1; + } + if (Bool4 != false) { + size += 1 + 1; + } + if (Bool5 != false) { + size += 1 + 1; + } + if (Bool6 != false) { + size += 1 + 1; + } + if (Bool7 != false) { + size += 1 + 1; + } + if (Bool8 != false) { + size += 1 + 1; + } + if (Bool9 != false) { + size += 1 + 1; + } + if (Bool10 != false) { + size += 1 + 1; + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(IOSDeviceInfo other) { + if (other == null) { + return; + } + if (other.Bool1 != false) { + Bool1 = other.Bool1; + } + if (other.Bool2 != false) { + Bool2 = other.Bool2; + } + if (other.Bool3 != false) { + Bool3 = other.Bool3; + } + if (other.Bool4 != false) { + Bool4 = other.Bool4; + } + if (other.Bool5 != false) { + Bool5 = other.Bool5; + } + if (other.Bool6 != false) { + Bool6 = other.Bool6; + } + if (other.Bool7 != false) { + Bool7 = other.Bool7; + } + if (other.Bool8 != false) { + Bool8 = other.Bool8; + } + if (other.Bool9 != false) { + Bool9 = other.Bool9; + } + if (other.Bool10 != false) { + Bool10 = other.Bool10; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 8: { + Bool1 = input.ReadBool(); + break; + } + case 16: { + Bool2 = input.ReadBool(); + break; + } + case 24: { + Bool3 = input.ReadBool(); + break; + } + case 32: { + Bool4 = input.ReadBool(); + break; + } + case 40: { + Bool5 = input.ReadBool(); + break; + } + case 48: { + Bool6 = input.ReadBool(); + break; + } + case 56: { + Bool7 = input.ReadBool(); + break; + } + case 64: { + Bool8 = input.ReadBool(); + break; + } + case 72: { + Bool9 = input.ReadBool(); + break; + } + case 80: { + Bool10 = input.ReadBool(); + break; + } + } + } + } + + } + + /// + /// 100% - Reference iOS lib "LocationUpdate" structure for bridge + /// + public sealed partial class SensorUpdate : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SensorUpdate()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Descriptor.NestedTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SensorUpdate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SensorUpdate(SensorUpdate other) : this() { + timestamp_ = other.timestamp_; + accelerationX_ = other.accelerationX_; + accelerationY_ = other.accelerationY_; + accelerationZ_ = other.accelerationZ_; + magneticFieldX_ = other.magneticFieldX_; + magneticFieldY_ = other.magneticFieldY_; + magneticFieldZ_ = other.magneticFieldZ_; + magneticFieldAccuracy_ = other.magneticFieldAccuracy_; + attitudePitch_ = other.attitudePitch_; + attitudeYaw_ = other.attitudeYaw_; + attitudeRoll_ = other.attitudeRoll_; + rotationRateX_ = other.rotationRateX_; + rotationRateY_ = other.rotationRateY_; + rotationRateZ_ = other.rotationRateZ_; + gravityX_ = other.gravityX_; + gravityY_ = other.gravityY_; + gravityZ_ = other.gravityZ_; + status_ = other.status_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SensorUpdate Clone() { + return new SensorUpdate(this); + } + + /// Field number for the "timestamp" field. + public const int TimestampFieldNumber = 1; + private ulong timestamp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong Timestamp { + get { return timestamp_; } + set { + timestamp_ = value; + } + } + + /// Field number for the "acceleration_x" field. + public const int AccelerationXFieldNumber = 3; + private double accelerationX_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double AccelerationX { + get { return accelerationX_; } + set { + accelerationX_ = value; + } + } + + /// Field number for the "acceleration_y" field. + public const int AccelerationYFieldNumber = 4; + private double accelerationY_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double AccelerationY { + get { return accelerationY_; } + set { + accelerationY_ = value; + } + } + + /// Field number for the "acceleration_z" field. + public const int AccelerationZFieldNumber = 5; + private double accelerationZ_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double AccelerationZ { + get { return accelerationZ_; } + set { + accelerationZ_ = value; + } + } + + /// Field number for the "magnetic_field_x" field. + public const int MagneticFieldXFieldNumber = 6; + private double magneticFieldX_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double MagneticFieldX { + get { return magneticFieldX_; } + set { + magneticFieldX_ = value; + } + } + + /// Field number for the "magnetic_field_y" field. + public const int MagneticFieldYFieldNumber = 7; + private double magneticFieldY_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double MagneticFieldY { + get { return magneticFieldY_; } + set { + magneticFieldY_ = value; + } + } + + /// Field number for the "magnetic_field_z" field. + public const int MagneticFieldZFieldNumber = 8; + private double magneticFieldZ_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double MagneticFieldZ { + get { return magneticFieldZ_; } + set { + magneticFieldZ_ = value; + } + } + + /// Field number for the "magnetic_field_accuracy" field. + public const int MagneticFieldAccuracyFieldNumber = 9; + private int magneticFieldAccuracy_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int MagneticFieldAccuracy { + get { return magneticFieldAccuracy_; } + set { + magneticFieldAccuracy_ = value; + } + } + + /// Field number for the "attitude_pitch" field. + public const int AttitudePitchFieldNumber = 10; + private double attitudePitch_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double AttitudePitch { + get { return attitudePitch_; } + set { + attitudePitch_ = value; + } + } + + /// Field number for the "attitude_yaw" field. + public const int AttitudeYawFieldNumber = 11; + private double attitudeYaw_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double AttitudeYaw { + get { return attitudeYaw_; } + set { + attitudeYaw_ = value; + } + } + + /// Field number for the "attitude_roll" field. + public const int AttitudeRollFieldNumber = 12; + private double attitudeRoll_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double AttitudeRoll { + get { return attitudeRoll_; } + set { + attitudeRoll_ = value; + } + } + + /// Field number for the "rotation_rate_x" field. + public const int RotationRateXFieldNumber = 13; + private double rotationRateX_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double RotationRateX { + get { return rotationRateX_; } + set { + rotationRateX_ = value; + } + } + + /// Field number for the "rotation_rate_y" field. + public const int RotationRateYFieldNumber = 14; + private double rotationRateY_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double RotationRateY { + get { return rotationRateY_; } + set { + rotationRateY_ = value; + } + } + + /// Field number for the "rotation_rate_z" field. + public const int RotationRateZFieldNumber = 15; + private double rotationRateZ_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double RotationRateZ { + get { return rotationRateZ_; } + set { + rotationRateZ_ = value; + } + } + + /// Field number for the "gravity_x" field. + public const int GravityXFieldNumber = 16; + private double gravityX_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double GravityX { + get { return gravityX_; } + set { + gravityX_ = value; + } + } + + /// Field number for the "gravity_y" field. + public const int GravityYFieldNumber = 17; + private double gravityY_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double GravityY { + get { return gravityY_; } + set { + gravityY_ = value; + } + } + + /// Field number for the "gravity_z" field. + public const int GravityZFieldNumber = 18; + private double gravityZ_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double GravityZ { + get { return gravityZ_; } + set { + gravityZ_ = value; + } + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 19; + private int status_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Status { + get { return status_; } + set { + status_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SensorUpdate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SensorUpdate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Timestamp != other.Timestamp) return false; + if (AccelerationX != other.AccelerationX) return false; + if (AccelerationY != other.AccelerationY) return false; + if (AccelerationZ != other.AccelerationZ) return false; + if (MagneticFieldX != other.MagneticFieldX) return false; + if (MagneticFieldY != other.MagneticFieldY) return false; + if (MagneticFieldZ != other.MagneticFieldZ) return false; + if (MagneticFieldAccuracy != other.MagneticFieldAccuracy) return false; + if (AttitudePitch != other.AttitudePitch) return false; + if (AttitudeYaw != other.AttitudeYaw) return false; + if (AttitudeRoll != other.AttitudeRoll) return false; + if (RotationRateX != other.RotationRateX) return false; + if (RotationRateY != other.RotationRateY) return false; + if (RotationRateZ != other.RotationRateZ) return false; + if (GravityX != other.GravityX) return false; + if (GravityY != other.GravityY) return false; + if (GravityZ != other.GravityZ) return false; + if (Status != other.Status) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Timestamp != 0UL) hash ^= Timestamp.GetHashCode(); + if (AccelerationX != 0D) hash ^= AccelerationX.GetHashCode(); + if (AccelerationY != 0D) hash ^= AccelerationY.GetHashCode(); + if (AccelerationZ != 0D) hash ^= AccelerationZ.GetHashCode(); + if (MagneticFieldX != 0D) hash ^= MagneticFieldX.GetHashCode(); + if (MagneticFieldY != 0D) hash ^= MagneticFieldY.GetHashCode(); + if (MagneticFieldZ != 0D) hash ^= MagneticFieldZ.GetHashCode(); + if (MagneticFieldAccuracy != 0) hash ^= MagneticFieldAccuracy.GetHashCode(); + if (AttitudePitch != 0D) hash ^= AttitudePitch.GetHashCode(); + if (AttitudeYaw != 0D) hash ^= AttitudeYaw.GetHashCode(); + if (AttitudeRoll != 0D) hash ^= AttitudeRoll.GetHashCode(); + if (RotationRateX != 0D) hash ^= RotationRateX.GetHashCode(); + if (RotationRateY != 0D) hash ^= RotationRateY.GetHashCode(); + if (RotationRateZ != 0D) hash ^= RotationRateZ.GetHashCode(); + if (GravityX != 0D) hash ^= GravityX.GetHashCode(); + if (GravityY != 0D) hash ^= GravityY.GetHashCode(); + if (GravityZ != 0D) hash ^= GravityZ.GetHashCode(); + if (Status != 0) hash ^= Status.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Timestamp != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(Timestamp); + } + if (AccelerationX != 0D) { + output.WriteRawTag(25); + output.WriteDouble(AccelerationX); + } + if (AccelerationY != 0D) { + output.WriteRawTag(33); + output.WriteDouble(AccelerationY); + } + if (AccelerationZ != 0D) { + output.WriteRawTag(41); + output.WriteDouble(AccelerationZ); + } + if (MagneticFieldX != 0D) { + output.WriteRawTag(49); + output.WriteDouble(MagneticFieldX); + } + if (MagneticFieldY != 0D) { + output.WriteRawTag(57); + output.WriteDouble(MagneticFieldY); + } + if (MagneticFieldZ != 0D) { + output.WriteRawTag(65); + output.WriteDouble(MagneticFieldZ); + } + if (MagneticFieldAccuracy != 0) { + output.WriteRawTag(72); + output.WriteInt32(MagneticFieldAccuracy); + } + if (AttitudePitch != 0D) { + output.WriteRawTag(81); + output.WriteDouble(AttitudePitch); + } + if (AttitudeYaw != 0D) { + output.WriteRawTag(89); + output.WriteDouble(AttitudeYaw); + } + if (AttitudeRoll != 0D) { + output.WriteRawTag(97); + output.WriteDouble(AttitudeRoll); + } + if (RotationRateX != 0D) { + output.WriteRawTag(105); + output.WriteDouble(RotationRateX); + } + if (RotationRateY != 0D) { + output.WriteRawTag(113); + output.WriteDouble(RotationRateY); + } + if (RotationRateZ != 0D) { + output.WriteRawTag(121); + output.WriteDouble(RotationRateZ); + } + if (GravityX != 0D) { + output.WriteRawTag(129, 1); + output.WriteDouble(GravityX); + } + if (GravityY != 0D) { + output.WriteRawTag(137, 1); + output.WriteDouble(GravityY); + } + if (GravityZ != 0D) { + output.WriteRawTag(145, 1); + output.WriteDouble(GravityZ); + } + if (Status != 0) { + output.WriteRawTag(152, 1); + output.WriteInt32(Status); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Timestamp != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Timestamp); + } + if (AccelerationX != 0D) { + size += 1 + 8; + } + if (AccelerationY != 0D) { + size += 1 + 8; + } + if (AccelerationZ != 0D) { + size += 1 + 8; + } + if (MagneticFieldX != 0D) { + size += 1 + 8; + } + if (MagneticFieldY != 0D) { + size += 1 + 8; + } + if (MagneticFieldZ != 0D) { + size += 1 + 8; + } + if (MagneticFieldAccuracy != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(MagneticFieldAccuracy); + } + if (AttitudePitch != 0D) { + size += 1 + 8; + } + if (AttitudeYaw != 0D) { + size += 1 + 8; + } + if (AttitudeRoll != 0D) { + size += 1 + 8; + } + if (RotationRateX != 0D) { + size += 1 + 8; + } + if (RotationRateY != 0D) { + size += 1 + 8; + } + if (RotationRateZ != 0D) { + size += 1 + 8; + } + if (GravityX != 0D) { + size += 2 + 8; + } + if (GravityY != 0D) { + size += 2 + 8; + } + if (GravityZ != 0D) { + size += 2 + 8; + } + if (Status != 0) { + size += 2 + pb::CodedOutputStream.ComputeInt32Size(Status); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SensorUpdate other) { + if (other == null) { + return; + } + if (other.Timestamp != 0UL) { + Timestamp = other.Timestamp; + } + if (other.AccelerationX != 0D) { + AccelerationX = other.AccelerationX; + } + if (other.AccelerationY != 0D) { + AccelerationY = other.AccelerationY; + } + if (other.AccelerationZ != 0D) { + AccelerationZ = other.AccelerationZ; + } + if (other.MagneticFieldX != 0D) { + MagneticFieldX = other.MagneticFieldX; + } + if (other.MagneticFieldY != 0D) { + MagneticFieldY = other.MagneticFieldY; + } + if (other.MagneticFieldZ != 0D) { + MagneticFieldZ = other.MagneticFieldZ; + } + if (other.MagneticFieldAccuracy != 0) { + MagneticFieldAccuracy = other.MagneticFieldAccuracy; + } + if (other.AttitudePitch != 0D) { + AttitudePitch = other.AttitudePitch; + } + if (other.AttitudeYaw != 0D) { + AttitudeYaw = other.AttitudeYaw; + } + if (other.AttitudeRoll != 0D) { + AttitudeRoll = other.AttitudeRoll; + } + if (other.RotationRateX != 0D) { + RotationRateX = other.RotationRateX; + } + if (other.RotationRateY != 0D) { + RotationRateY = other.RotationRateY; + } + if (other.RotationRateZ != 0D) { + RotationRateZ = other.RotationRateZ; + } + if (other.GravityX != 0D) { + GravityX = other.GravityX; + } + if (other.GravityY != 0D) { + GravityY = other.GravityY; + } + if (other.GravityZ != 0D) { + GravityZ = other.GravityZ; + } + if (other.Status != 0) { + Status = other.Status; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 8: { + Timestamp = input.ReadUInt64(); + break; + } + case 25: { + AccelerationX = input.ReadDouble(); + break; + } + case 33: { + AccelerationY = input.ReadDouble(); + break; + } + case 41: { + AccelerationZ = input.ReadDouble(); + break; + } + case 49: { + MagneticFieldX = input.ReadDouble(); + break; + } + case 57: { + MagneticFieldY = input.ReadDouble(); + break; + } + case 65: { + MagneticFieldZ = input.ReadDouble(); + break; + } + case 72: { + MagneticFieldAccuracy = input.ReadInt32(); + break; + } + case 81: { + AttitudePitch = input.ReadDouble(); + break; + } + case 89: { + AttitudeYaw = input.ReadDouble(); + break; + } + case 97: { + AttitudeRoll = input.ReadDouble(); + break; + } + case 105: { + RotationRateX = input.ReadDouble(); + break; + } + case 113: { + RotationRateY = input.ReadDouble(); + break; + } + case 121: { + RotationRateZ = input.ReadDouble(); + break; + } + case 129: { + GravityX = input.ReadDouble(); + break; + } + case 137: { + GravityY = input.ReadDouble(); + break; + } + case 145: { + GravityZ = input.ReadDouble(); + break; + } + case 152: { + Status = input.ReadInt32(); + break; + } + } + } + } + + } + + public sealed partial class DeviceInfo : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceInfo()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Descriptor.NestedTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DeviceInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DeviceInfo(DeviceInfo other) : this() { + deviceId_ = other.deviceId_; + androidBoardName_ = other.androidBoardName_; + androidBootloader_ = other.androidBootloader_; + deviceBrand_ = other.deviceBrand_; + deviceModel_ = other.deviceModel_; + deviceModelIdentifier_ = other.deviceModelIdentifier_; + deviceCommsModel_ = other.deviceCommsModel_; + hardwareManufacturer_ = other.hardwareManufacturer_; + hardwareModel_ = other.hardwareModel_; + firmwareBrand_ = other.firmwareBrand_; + firmwareTags_ = other.firmwareTags_; + firmwareType_ = other.firmwareType_; + firmwareFingerprint_ = other.firmwareFingerprint_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DeviceInfo Clone() { + return new DeviceInfo(this); + } + + /// Field number for the "device_id" field. + public const int DeviceIdFieldNumber = 1; + private string deviceId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string DeviceId { + get { return deviceId_; } + set { + deviceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "android_board_name" field. + public const int AndroidBoardNameFieldNumber = 2; + private string androidBoardName_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string AndroidBoardName { + get { return androidBoardName_; } + set { + androidBoardName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "android_bootloader" field. + public const int AndroidBootloaderFieldNumber = 3; + private string androidBootloader_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string AndroidBootloader { + get { return androidBootloader_; } + set { + androidBootloader_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "device_brand" field. + public const int DeviceBrandFieldNumber = 4; + private string deviceBrand_ = ""; + /// + /// product.brand + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string DeviceBrand { + get { return deviceBrand_; } + set { + deviceBrand_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "device_model" field. + public const int DeviceModelFieldNumber = 5; + private string deviceModel_ = ""; + /// + /// product.device + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string DeviceModel { + get { return deviceModel_; } + set { + deviceModel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "device_model_identifier" field. + public const int DeviceModelIdentifierFieldNumber = 6; + private string deviceModelIdentifier_ = ""; + /// + /// Android only, build.display.id + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string DeviceModelIdentifier { + get { return deviceModelIdentifier_; } + set { + deviceModelIdentifier_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "device_comms_model" field. + public const int DeviceCommsModelFieldNumber = 7; + private string deviceCommsModel_ = ""; + /// + /// boot.hardware + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string DeviceCommsModel { + get { return deviceCommsModel_; } + set { + deviceCommsModel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "hardware_manufacturer" field. + public const int HardwareManufacturerFieldNumber = 8; + private string hardwareManufacturer_ = ""; + /// + /// product.manufacturer + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string HardwareManufacturer { + get { return hardwareManufacturer_; } + set { + hardwareManufacturer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "hardware_model" field. + public const int HardwareModelFieldNumber = 9; + private string hardwareModel_ = ""; + /// + /// product.model + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string HardwareModel { + get { return hardwareModel_; } + set { + hardwareModel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "firmware_brand" field. + public const int FirmwareBrandFieldNumber = 10; + private string firmwareBrand_ = ""; + /// + /// On iOS: "iPhone OS", product.name + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string FirmwareBrand { + get { return firmwareBrand_; } + set { + firmwareBrand_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "firmware_tags" field. + public const int FirmwareTagsFieldNumber = 12; + private string firmwareTags_ = ""; + /// + /// Android only, build.tags + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string FirmwareTags { + get { return firmwareTags_; } + set { + firmwareTags_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "firmware_type" field. + public const int FirmwareTypeFieldNumber = 13; + private string firmwareType_ = ""; + /// + /// On iOS instead: iOS version; // build.type + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string FirmwareType { + get { return firmwareType_; } + set { + firmwareType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "firmware_fingerprint" field. + public const int FirmwareFingerprintFieldNumber = 14; + private string firmwareFingerprint_ = ""; + /// + /// Android only, build.fingerprint + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string FirmwareFingerprint { + get { return firmwareFingerprint_; } + set { + firmwareFingerprint_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as DeviceInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(DeviceInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DeviceId != other.DeviceId) return false; + if (AndroidBoardName != other.AndroidBoardName) return false; + if (AndroidBootloader != other.AndroidBootloader) return false; + if (DeviceBrand != other.DeviceBrand) return false; + if (DeviceModel != other.DeviceModel) return false; + if (DeviceModelIdentifier != other.DeviceModelIdentifier) return false; + if (DeviceCommsModel != other.DeviceCommsModel) return false; + if (HardwareManufacturer != other.HardwareManufacturer) return false; + if (HardwareModel != other.HardwareModel) return false; + if (FirmwareBrand != other.FirmwareBrand) return false; + if (FirmwareTags != other.FirmwareTags) return false; + if (FirmwareType != other.FirmwareType) return false; + if (FirmwareFingerprint != other.FirmwareFingerprint) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (DeviceId.Length != 0) hash ^= DeviceId.GetHashCode(); + if (AndroidBoardName.Length != 0) hash ^= AndroidBoardName.GetHashCode(); + if (AndroidBootloader.Length != 0) hash ^= AndroidBootloader.GetHashCode(); + if (DeviceBrand.Length != 0) hash ^= DeviceBrand.GetHashCode(); + if (DeviceModel.Length != 0) hash ^= DeviceModel.GetHashCode(); + if (DeviceModelIdentifier.Length != 0) hash ^= DeviceModelIdentifier.GetHashCode(); + if (DeviceCommsModel.Length != 0) hash ^= DeviceCommsModel.GetHashCode(); + if (HardwareManufacturer.Length != 0) hash ^= HardwareManufacturer.GetHashCode(); + if (HardwareModel.Length != 0) hash ^= HardwareModel.GetHashCode(); + if (FirmwareBrand.Length != 0) hash ^= FirmwareBrand.GetHashCode(); + if (FirmwareTags.Length != 0) hash ^= FirmwareTags.GetHashCode(); + if (FirmwareType.Length != 0) hash ^= FirmwareType.GetHashCode(); + if (FirmwareFingerprint.Length != 0) hash ^= FirmwareFingerprint.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (DeviceId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DeviceId); + } + if (AndroidBoardName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(AndroidBoardName); + } + if (AndroidBootloader.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AndroidBootloader); + } + if (DeviceBrand.Length != 0) { + output.WriteRawTag(34); + output.WriteString(DeviceBrand); + } + if (DeviceModel.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DeviceModel); + } + if (DeviceModelIdentifier.Length != 0) { + output.WriteRawTag(50); + output.WriteString(DeviceModelIdentifier); + } + if (DeviceCommsModel.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DeviceCommsModel); + } + if (HardwareManufacturer.Length != 0) { + output.WriteRawTag(66); + output.WriteString(HardwareManufacturer); + } + if (HardwareModel.Length != 0) { + output.WriteRawTag(74); + output.WriteString(HardwareModel); + } + if (FirmwareBrand.Length != 0) { + output.WriteRawTag(82); + output.WriteString(FirmwareBrand); + } + if (FirmwareTags.Length != 0) { + output.WriteRawTag(98); + output.WriteString(FirmwareTags); + } + if (FirmwareType.Length != 0) { + output.WriteRawTag(106); + output.WriteString(FirmwareType); + } + if (FirmwareFingerprint.Length != 0) { + output.WriteRawTag(114); + output.WriteString(FirmwareFingerprint); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (DeviceId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceId); + } + if (AndroidBoardName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AndroidBoardName); + } + if (AndroidBootloader.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AndroidBootloader); + } + if (DeviceBrand.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceBrand); + } + if (DeviceModel.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceModel); + } + if (DeviceModelIdentifier.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceModelIdentifier); + } + if (DeviceCommsModel.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceCommsModel); + } + if (HardwareManufacturer.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(HardwareManufacturer); + } + if (HardwareModel.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(HardwareModel); + } + if (FirmwareBrand.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FirmwareBrand); + } + if (FirmwareTags.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FirmwareTags); + } + if (FirmwareType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FirmwareType); + } + if (FirmwareFingerprint.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FirmwareFingerprint); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(DeviceInfo other) { + if (other == null) { + return; + } + if (other.DeviceId.Length != 0) { + DeviceId = other.DeviceId; + } + if (other.AndroidBoardName.Length != 0) { + AndroidBoardName = other.AndroidBoardName; + } + if (other.AndroidBootloader.Length != 0) { + AndroidBootloader = other.AndroidBootloader; + } + if (other.DeviceBrand.Length != 0) { + DeviceBrand = other.DeviceBrand; + } + if (other.DeviceModel.Length != 0) { + DeviceModel = other.DeviceModel; + } + if (other.DeviceModelIdentifier.Length != 0) { + DeviceModelIdentifier = other.DeviceModelIdentifier; + } + if (other.DeviceCommsModel.Length != 0) { + DeviceCommsModel = other.DeviceCommsModel; + } + if (other.HardwareManufacturer.Length != 0) { + HardwareManufacturer = other.HardwareManufacturer; + } + if (other.HardwareModel.Length != 0) { + HardwareModel = other.HardwareModel; + } + if (other.FirmwareBrand.Length != 0) { + FirmwareBrand = other.FirmwareBrand; + } + if (other.FirmwareTags.Length != 0) { + FirmwareTags = other.FirmwareTags; + } + if (other.FirmwareType.Length != 0) { + FirmwareType = other.FirmwareType; + } + if (other.FirmwareFingerprint.Length != 0) { + FirmwareFingerprint = other.FirmwareFingerprint; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 10: { + DeviceId = input.ReadString(); + break; + } + case 18: { + AndroidBoardName = input.ReadString(); + break; + } + case 26: { + AndroidBootloader = input.ReadString(); + break; + } + case 34: { + DeviceBrand = input.ReadString(); + break; + } + case 42: { + DeviceModel = input.ReadString(); + break; + } + case 50: { + DeviceModelIdentifier = input.ReadString(); + break; + } + case 58: { + DeviceCommsModel = input.ReadString(); + break; + } + case 66: { + HardwareManufacturer = input.ReadString(); + break; + } + case 74: { + HardwareModel = input.ReadString(); + break; + } + case 82: { + FirmwareBrand = input.ReadString(); + break; + } + case 98: { + FirmwareTags = input.ReadString(); + break; + } + case 106: { + FirmwareType = input.ReadString(); + break; + } + case 114: { + FirmwareFingerprint = input.ReadString(); + break; + } + } + } + } + + } + + public sealed partial class AndroidGpsInfo : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AndroidGpsInfo()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::POGOProtos.Networking.Envelopes.SignalAgglomUpdates.Descriptor.NestedTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AndroidGpsInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AndroidGpsInfo(AndroidGpsInfo other) : this() { + timeToFix_ = other.timeToFix_; + satellitesPrn_ = other.satellitesPrn_.Clone(); + azimuth_ = other.azimuth_.Clone(); + elevation_ = other.elevation_.Clone(); + snr_ = other.snr_.Clone(); + hasAlmanac_ = other.hasAlmanac_.Clone(); + hasEphemeris_ = other.hasEphemeris_.Clone(); + usedInFix_ = other.usedInFix_.Clone(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AndroidGpsInfo Clone() { + return new AndroidGpsInfo(this); + } + + /// Field number for the "time_to_fix" field. + public const int TimeToFixFieldNumber = 1; + private ulong timeToFix_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong TimeToFix { + get { return timeToFix_; } + set { + timeToFix_ = value; + } + } + + /// Field number for the "satellites_prn" field. + public const int SatellitesPrnFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_satellitesPrn_codec + = pb::FieldCodec.ForInt32(18); + private readonly pbc::RepeatedField satellitesPrn_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField SatellitesPrn { + get { return satellitesPrn_; } + } + + /// Field number for the "azimuth" field. + public const int AzimuthFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_azimuth_codec + = pb::FieldCodec.ForFloat(26); + private readonly pbc::RepeatedField azimuth_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Azimuth { + get { return azimuth_; } + } + + /// Field number for the "elevation" field. + public const int ElevationFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_elevation_codec + = pb::FieldCodec.ForFloat(34); + private readonly pbc::RepeatedField elevation_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Elevation { + get { return elevation_; } + } + + /// Field number for the "snr" field. + public const int SnrFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_snr_codec + = pb::FieldCodec.ForFloat(42); + private readonly pbc::RepeatedField snr_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Snr { + get { return snr_; } + } + + /// Field number for the "has_almanac" field. + public const int HasAlmanacFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_hasAlmanac_codec + = pb::FieldCodec.ForBool(50); + private readonly pbc::RepeatedField hasAlmanac_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField HasAlmanac { + get { return hasAlmanac_; } + } + + /// Field number for the "has_ephemeris" field. + public const int HasEphemerisFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_hasEphemeris_codec + = pb::FieldCodec.ForBool(58); + private readonly pbc::RepeatedField hasEphemeris_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField HasEphemeris { + get { return hasEphemeris_; } + } + + /// Field number for the "used_in_fix" field. + public const int UsedInFixFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_usedInFix_codec + = pb::FieldCodec.ForBool(66); + private readonly pbc::RepeatedField usedInFix_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField UsedInFix { + get { return usedInFix_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AndroidGpsInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AndroidGpsInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (TimeToFix != other.TimeToFix) return false; + if(!satellitesPrn_.Equals(other.satellitesPrn_)) return false; + if(!azimuth_.Equals(other.azimuth_)) return false; + if(!elevation_.Equals(other.elevation_)) return false; + if(!snr_.Equals(other.snr_)) return false; + if(!hasAlmanac_.Equals(other.hasAlmanac_)) return false; + if(!hasEphemeris_.Equals(other.hasEphemeris_)) return false; + if(!usedInFix_.Equals(other.usedInFix_)) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (TimeToFix != 0UL) hash ^= TimeToFix.GetHashCode(); + hash ^= satellitesPrn_.GetHashCode(); + hash ^= azimuth_.GetHashCode(); + hash ^= elevation_.GetHashCode(); + hash ^= snr_.GetHashCode(); + hash ^= hasAlmanac_.GetHashCode(); + hash ^= hasEphemeris_.GetHashCode(); + hash ^= usedInFix_.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (TimeToFix != 0UL) { + output.WriteRawTag(8); + output.WriteUInt64(TimeToFix); + } + satellitesPrn_.WriteTo(output, _repeated_satellitesPrn_codec); + azimuth_.WriteTo(output, _repeated_azimuth_codec); + elevation_.WriteTo(output, _repeated_elevation_codec); + snr_.WriteTo(output, _repeated_snr_codec); + hasAlmanac_.WriteTo(output, _repeated_hasAlmanac_codec); + hasEphemeris_.WriteTo(output, _repeated_hasEphemeris_codec); + usedInFix_.WriteTo(output, _repeated_usedInFix_codec); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (TimeToFix != 0UL) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TimeToFix); + } + size += satellitesPrn_.CalculateSize(_repeated_satellitesPrn_codec); + size += azimuth_.CalculateSize(_repeated_azimuth_codec); + size += elevation_.CalculateSize(_repeated_elevation_codec); + size += snr_.CalculateSize(_repeated_snr_codec); + size += hasAlmanac_.CalculateSize(_repeated_hasAlmanac_codec); + size += hasEphemeris_.CalculateSize(_repeated_hasEphemeris_codec); + size += usedInFix_.CalculateSize(_repeated_usedInFix_codec); + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AndroidGpsInfo other) { + if (other == null) { + return; + } + if (other.TimeToFix != 0UL) { + TimeToFix = other.TimeToFix; + } + satellitesPrn_.Add(other.satellitesPrn_); + azimuth_.Add(other.azimuth_); + elevation_.Add(other.elevation_); + snr_.Add(other.snr_); + hasAlmanac_.Add(other.hasAlmanac_); + hasEphemeris_.Add(other.hasEphemeris_); + usedInFix_.Add(other.usedInFix_); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 8: { + TimeToFix = input.ReadUInt64(); + break; + } + case 18: + case 16: { + satellitesPrn_.AddEntriesFrom(input, _repeated_satellitesPrn_codec); + break; + } + case 26: + case 29: { + azimuth_.AddEntriesFrom(input, _repeated_azimuth_codec); + break; + } + case 34: + case 37: { + elevation_.AddEntriesFrom(input, _repeated_elevation_codec); + break; + } + case 42: + case 45: { + snr_.AddEntriesFrom(input, _repeated_snr_codec); + break; + } + case 50: + case 48: { + hasAlmanac_.AddEntriesFrom(input, _repeated_hasAlmanac_codec); + break; + } + case 58: + case 56: { + hasEphemeris_.AddEntriesFrom(input, _repeated_hasEphemeris_codec); + break; + } + case 66: + case 64: { + usedInFix_.AddEntriesFrom(input, _repeated_usedInFix_codec); + break; + } + } + } + } + + } + + } + #endregion + + } + + /// + /// Just a junk message to denote that we don't currently know what message something is. + /// + public sealed partial class UnknownMessage : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnknownMessage()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::POGOProtos.Networking.Envelopes.SignalAgglomUpdatesReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnknownMessage() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnknownMessage(UnknownMessage other) : this() { + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public UnknownMessage Clone() { + return new UnknownMessage(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as UnknownMessage); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(UnknownMessage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(UnknownMessage other) { + if (other == null) { + return; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Networking/Envelopes/Signature.cs b/Networking/Envelopes/Signature.cs deleted file mode 100644 index 7439b5d..0000000 --- a/Networking/Envelopes/Signature.cs +++ /dev/null @@ -1,2614 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: POGOProtos/Networking/Envelopes/Signature.proto -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace POGOProtos.Networking.Envelopes { - - /// Holder for reflection information generated from POGOProtos/Networking/Envelopes/Signature.proto - public static partial class SignatureReflection { - - #region Descriptor - /// File descriptor for POGOProtos/Networking/Envelopes/Signature.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static SignatureReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ci9QT0dPUHJvdG9zL05ldHdvcmtpbmcvRW52ZWxvcGVzL1NpZ25hdHVyZS5w", - "cm90bxIfUE9HT1Byb3Rvcy5OZXR3b3JraW5nLkVudmVsb3BlcyKtDwoJU2ln", - "bmF0dXJlEh0KFXRpbWVzdGFtcF9zaW5jZV9zdGFydBgCIAEoBBJMCgxsb2Nh", - "dGlvbl9maXgYBCADKAsyNi5QT0dPUHJvdG9zLk5ldHdvcmtpbmcuRW52ZWxv", - "cGVzLlNpZ25hdHVyZS5Mb2NhdGlvbkZpeBJLCghncHNfaW5mbxgFIAEoCzI5", - "LlBPR09Qcm90b3MuTmV0d29ya2luZy5FbnZlbG9wZXMuU2lnbmF0dXJlLkFu", - "ZHJvaWRHcHNJbmZvEkoKC3NlbnNvcl9pbmZvGAcgASgLMjUuUE9HT1Byb3Rv", - "cy5OZXR3b3JraW5nLkVudmVsb3Blcy5TaWduYXR1cmUuU2Vuc29ySW5mbxJK", - "CgtkZXZpY2VfaW5mbxgIIAEoCzI1LlBPR09Qcm90b3MuTmV0d29ya2luZy5F", - "bnZlbG9wZXMuU2lnbmF0dXJlLkRldmljZUluZm8SUgoPYWN0aXZpdHlfc3Rh", - "dHVzGAkgASgLMjkuUE9HT1Byb3Rvcy5OZXR3b3JraW5nLkVudmVsb3Blcy5T", - "aWduYXR1cmUuQWN0aXZpdHlTdGF0dXMSFgoObG9jYXRpb25faGFzaDEYCiAB", - "KAQSFgoObG9jYXRpb25faGFzaDIYFCABKAQSFAoMc2Vzc2lvbl9oYXNoGBYg", - "ASgMEhEKCXRpbWVzdGFtcBgXIAEoBBIUCgxyZXF1ZXN0X2hhc2gYGCADKAQS", - "EQoJdW5rbm93bjI1GBkgASgDGukBCgtMb2NhdGlvbkZpeBIQCghwcm92aWRl", - "chgBIAEoCRIaChJ0aW1lc3RhbXBfc25hcHNob3QYAiABKAQSEAoIbGF0aXR1", - "ZGUYDSABKAISEQoJbG9uZ2l0dWRlGA4gASgCEhsKE2hvcml6b250YWxfYWNj", - "dXJhY3kYFCABKAISEAoIYWx0aXR1ZGUYFSABKAISGQoRdmVydGljYWxfYWNj", - "dXJhY3kYFiABKAISFwoPcHJvdmlkZXJfc3RhdHVzGBogASgEEg0KBWZsb29y", - "GBsgASgNEhUKDWxvY2F0aW9uX3R5cGUYHCABKAQarwEKDkFuZHJvaWRHcHNJ", - "bmZvEhMKC3RpbWVfdG9fZml4GAEgASgEEhYKDnNhdGVsbGl0ZXNfcHJuGAIg", - "AygFEg8KB2F6aW11dGgYAyADKAISEQoJZWxldmF0aW9uGAQgAygCEgsKA3Nu", - "chgFIAMoAhITCgtoYXNfYWxtYW5hYxgGIAMoCBIVCg1oYXNfZXBoZW1lcmlz", - "GAcgAygIEhMKC3VzZWRfaW5fZml4GAggAygIGr4DCgpTZW5zb3JJbmZvEhoK", - "EnRpbWVzdGFtcF9zbmFwc2hvdBgBIAEoBBIWCg5tYWduZXRvbWV0ZXJfeBgD", - "IAEoARIWCg5tYWduZXRvbWV0ZXJfeRgEIAEoARIWCg5tYWduZXRvbWV0ZXJf", - "ehgFIAEoARIaChJhbmdsZV9ub3JtYWxpemVkX3gYBiABKAESGgoSYW5nbGVf", - "bm9ybWFsaXplZF95GAcgASgBEhoKEmFuZ2xlX25vcm1hbGl6ZWRfehgIIAEo", - "ARITCgthY2NlbF9yYXdfeBgKIAEoARITCgthY2NlbF9yYXdfeRgLIAEoARIT", - "CgthY2NlbF9yYXdfehgMIAEoARIXCg9neXJvc2NvcGVfcmF3X3gYDSABKAES", - "FwoPZ3lyb3Njb3BlX3Jhd195GA4gASgBEhcKD2d5cm9zY29wZV9yYXdfehgP", - "IAEoARIaChJhY2NlbF9ub3JtYWxpemVkX3gYECABKAESGgoSYWNjZWxfbm9y", - "bWFsaXplZF95GBEgASgBEhoKEmFjY2VsX25vcm1hbGl6ZWRfehgSIAEoARIa", - "ChJhY2NlbGVyb21ldGVyX2F4ZXMYEyABKAQa2gIKCkRldmljZUluZm8SEQoJ", - "ZGV2aWNlX2lkGAEgASgJEhoKEmFuZHJvaWRfYm9hcmRfbmFtZRgCIAEoCRIa", - "ChJhbmRyb2lkX2Jvb3Rsb2FkZXIYAyABKAkSFAoMZGV2aWNlX2JyYW5kGAQg", - "ASgJEhQKDGRldmljZV9tb2RlbBgFIAEoCRIfChdkZXZpY2VfbW9kZWxfaWRl", - "bnRpZmllchgGIAEoCRIZChFkZXZpY2VfbW9kZWxfYm9vdBgHIAEoCRIdChVo", - "YXJkd2FyZV9tYW51ZmFjdHVyZXIYCCABKAkSFgoOaGFyZHdhcmVfbW9kZWwY", - "CSABKAkSFgoOZmlybXdhcmVfYnJhbmQYCiABKAkSFQoNZmlybXdhcmVfdGFn", - "cxgMIAEoCRIVCg1maXJtd2FyZV90eXBlGA0gASgJEhwKFGZpcm13YXJlX2Zp", - "bmdlcnByaW50GA4gASgJGrsBCg5BY3Rpdml0eVN0YXR1cxIVCg1zdGFydF90", - "aW1lX21zGAEgASgEEhYKDnVua25vd25fc3RhdHVzGAIgASgIEg8KB3dhbGtp", - "bmcYAyABKAgSDwoHcnVubmluZxgEIAEoCBISCgpzdGF0aW9uYXJ5GAUgASgI", - "EhIKCmF1dG9tb3RpdmUYBiABKAgSDwoHdGlsdGluZxgHIAEoCBIPCgdjeWNs", - "aW5nGAggASgIEg4KBnN0YXR1cxgJIAEoDGIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.Signature), global::POGOProtos.Networking.Envelopes.Signature.Parser, new[]{ "TimestampSinceStart", "LocationFix", "GpsInfo", "SensorInfo", "DeviceInfo", "ActivityStatus", "LocationHash1", "LocationHash2", "SessionHash", "Timestamp", "RequestHash", "Unknown25" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.Signature.Types.LocationFix), global::POGOProtos.Networking.Envelopes.Signature.Types.LocationFix.Parser, new[]{ "Provider", "TimestampSnapshot", "Latitude", "Longitude", "HorizontalAccuracy", "Altitude", "VerticalAccuracy", "ProviderStatus", "Floor", "LocationType" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.Signature.Types.AndroidGpsInfo), global::POGOProtos.Networking.Envelopes.Signature.Types.AndroidGpsInfo.Parser, new[]{ "TimeToFix", "SatellitesPrn", "Azimuth", "Elevation", "Snr", "HasAlmanac", "HasEphemeris", "UsedInFix" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.Signature.Types.SensorInfo), global::POGOProtos.Networking.Envelopes.Signature.Types.SensorInfo.Parser, new[]{ "TimestampSnapshot", "MagnetometerX", "MagnetometerY", "MagnetometerZ", "AngleNormalizedX", "AngleNormalizedY", "AngleNormalizedZ", "AccelRawX", "AccelRawY", "AccelRawZ", "GyroscopeRawX", "GyroscopeRawY", "GyroscopeRawZ", "AccelNormalizedX", "AccelNormalizedY", "AccelNormalizedZ", "AccelerometerAxes" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.Signature.Types.DeviceInfo), global::POGOProtos.Networking.Envelopes.Signature.Types.DeviceInfo.Parser, new[]{ "DeviceId", "AndroidBoardName", "AndroidBootloader", "DeviceBrand", "DeviceModel", "DeviceModelIdentifier", "DeviceModelBoot", "HardwareManufacturer", "HardwareModel", "FirmwareBrand", "FirmwareTags", "FirmwareType", "FirmwareFingerprint" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.Signature.Types.ActivityStatus), global::POGOProtos.Networking.Envelopes.Signature.Types.ActivityStatus.Parser, new[]{ "StartTimeMs", "UnknownStatus", "Walking", "Running", "Stationary", "Automotive", "Tilting", "Cycling", "Status" }, null, null, null)}) - })); - } - #endregion - - } - #region Messages - public sealed partial class Signature : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Signature()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Envelopes.SignatureReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Signature() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Signature(Signature other) : this() { - timestampSinceStart_ = other.timestampSinceStart_; - locationFix_ = other.locationFix_.Clone(); - GpsInfo = other.gpsInfo_ != null ? other.GpsInfo.Clone() : null; - SensorInfo = other.sensorInfo_ != null ? other.SensorInfo.Clone() : null; - DeviceInfo = other.deviceInfo_ != null ? other.DeviceInfo.Clone() : null; - ActivityStatus = other.activityStatus_ != null ? other.ActivityStatus.Clone() : null; - locationHash1_ = other.locationHash1_; - locationHash2_ = other.locationHash2_; - sessionHash_ = other.sessionHash_; - timestamp_ = other.timestamp_; - requestHash_ = other.requestHash_.Clone(); - unknown25_ = other.unknown25_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Signature Clone() { - return new Signature(this); - } - - /// Field number for the "timestamp_since_start" field. - public const int TimestampSinceStartFieldNumber = 2; - private ulong timestampSinceStart_; - /// - /// in ms - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong TimestampSinceStart { - get { return timestampSinceStart_; } - set { - timestampSinceStart_ = value; - } - } - - /// Field number for the "location_fix" field. - public const int LocationFixFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_locationFix_codec - = pb::FieldCodec.ForMessage(34, global::POGOProtos.Networking.Envelopes.Signature.Types.LocationFix.Parser); - private readonly pbc::RepeatedField locationFix_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField LocationFix { - get { return locationFix_; } - } - - /// Field number for the "gps_info" field. - public const int GpsInfoFieldNumber = 5; - private global::POGOProtos.Networking.Envelopes.Signature.Types.AndroidGpsInfo gpsInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Networking.Envelopes.Signature.Types.AndroidGpsInfo GpsInfo { - get { return gpsInfo_; } - set { - gpsInfo_ = value; - } - } - - /// Field number for the "sensor_info" field. - public const int SensorInfoFieldNumber = 7; - private global::POGOProtos.Networking.Envelopes.Signature.Types.SensorInfo sensorInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Networking.Envelopes.Signature.Types.SensorInfo SensorInfo { - get { return sensorInfo_; } - set { - sensorInfo_ = value; - } - } - - /// Field number for the "device_info" field. - public const int DeviceInfoFieldNumber = 8; - private global::POGOProtos.Networking.Envelopes.Signature.Types.DeviceInfo deviceInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Networking.Envelopes.Signature.Types.DeviceInfo DeviceInfo { - get { return deviceInfo_; } - set { - deviceInfo_ = value; - } - } - - /// Field number for the "activity_status" field. - public const int ActivityStatusFieldNumber = 9; - private global::POGOProtos.Networking.Envelopes.Signature.Types.ActivityStatus activityStatus_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Networking.Envelopes.Signature.Types.ActivityStatus ActivityStatus { - get { return activityStatus_; } - set { - activityStatus_ = value; - } - } - - /// Field number for the "location_hash1" field. - public const int LocationHash1FieldNumber = 10; - private ulong locationHash1_; - /// - /// Location1 hashed signed based on the auth_token or auth_info - xxHash32 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong LocationHash1 { - get { return locationHash1_; } - set { - locationHash1_ = value; - } - } - - /// Field number for the "location_hash2" field. - public const int LocationHash2FieldNumber = 20; - private ulong locationHash2_; - /// - /// Location2 hashed (unsigned) - xxHash32 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong LocationHash2 { - get { return locationHash2_; } - set { - locationHash2_ = value; - } - } - - /// Field number for the "session_hash" field. - public const int SessionHashFieldNumber = 22; - private pb::ByteString sessionHash_ = pb::ByteString.Empty; - /// - /// 16 bytes, unique per session - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pb::ByteString SessionHash { - get { return sessionHash_; } - set { - sessionHash_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "timestamp" field. - public const int TimestampFieldNumber = 23; - private ulong timestamp_; - /// - /// epoch timestamp in ms - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong Timestamp { - get { return timestamp_; } - set { - timestamp_ = value; - } - } - - /// Field number for the "request_hash" field. - public const int RequestHashFieldNumber = 24; - private static readonly pb::FieldCodec _repeated_requestHash_codec - = pb::FieldCodec.ForUInt64(194); - private readonly pbc::RepeatedField requestHash_ = new pbc::RepeatedField(); - /// - /// hashes of each request message in a hashArray signed based on the auth_token or auth_info - xxhash64 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField RequestHash { - get { return requestHash_; } - } - - /// Field number for the "unknown25" field. - public const int Unknown25FieldNumber = 25; - private long unknown25_; - /// - /// for 0.33 its static -8537042734809897855 or 0x898654dd2753a481, generated via xxHash64("\"b8fa9757195897aae92c53dbcf8a60fb3d86d745\"".ToByteArray(), 0x88533787) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public long Unknown25 { - get { return unknown25_; } - set { - unknown25_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as Signature); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Signature other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TimestampSinceStart != other.TimestampSinceStart) return false; - if(!locationFix_.Equals(other.locationFix_)) return false; - if (!object.Equals(GpsInfo, other.GpsInfo)) return false; - if (!object.Equals(SensorInfo, other.SensorInfo)) return false; - if (!object.Equals(DeviceInfo, other.DeviceInfo)) return false; - if (!object.Equals(ActivityStatus, other.ActivityStatus)) return false; - if (LocationHash1 != other.LocationHash1) return false; - if (LocationHash2 != other.LocationHash2) return false; - if (SessionHash != other.SessionHash) return false; - if (Timestamp != other.Timestamp) return false; - if(!requestHash_.Equals(other.requestHash_)) return false; - if (Unknown25 != other.Unknown25) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (TimestampSinceStart != 0UL) hash ^= TimestampSinceStart.GetHashCode(); - hash ^= locationFix_.GetHashCode(); - if (gpsInfo_ != null) hash ^= GpsInfo.GetHashCode(); - if (sensorInfo_ != null) hash ^= SensorInfo.GetHashCode(); - if (deviceInfo_ != null) hash ^= DeviceInfo.GetHashCode(); - if (activityStatus_ != null) hash ^= ActivityStatus.GetHashCode(); - if (LocationHash1 != 0UL) hash ^= LocationHash1.GetHashCode(); - if (LocationHash2 != 0UL) hash ^= LocationHash2.GetHashCode(); - if (SessionHash.Length != 0) hash ^= SessionHash.GetHashCode(); - if (Timestamp != 0UL) hash ^= Timestamp.GetHashCode(); - hash ^= requestHash_.GetHashCode(); - if (Unknown25 != 0L) hash ^= Unknown25.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (TimestampSinceStart != 0UL) { - output.WriteRawTag(16); - output.WriteUInt64(TimestampSinceStart); - } - locationFix_.WriteTo(output, _repeated_locationFix_codec); - if (gpsInfo_ != null) { - output.WriteRawTag(42); - output.WriteMessage(GpsInfo); - } - if (sensorInfo_ != null) { - output.WriteRawTag(58); - output.WriteMessage(SensorInfo); - } - if (deviceInfo_ != null) { - output.WriteRawTag(66); - output.WriteMessage(DeviceInfo); - } - if (activityStatus_ != null) { - output.WriteRawTag(74); - output.WriteMessage(ActivityStatus); - } - if (LocationHash1 != 0UL) { - output.WriteRawTag(80); - output.WriteUInt64(LocationHash1); - } - if (LocationHash2 != 0UL) { - output.WriteRawTag(160, 1); - output.WriteUInt64(LocationHash2); - } - if (SessionHash.Length != 0) { - output.WriteRawTag(178, 1); - output.WriteBytes(SessionHash); - } - if (Timestamp != 0UL) { - output.WriteRawTag(184, 1); - output.WriteUInt64(Timestamp); - } - requestHash_.WriteTo(output, _repeated_requestHash_codec); - if (Unknown25 != 0L) { - output.WriteRawTag(200, 1); - output.WriteInt64(Unknown25); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (TimestampSinceStart != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TimestampSinceStart); - } - size += locationFix_.CalculateSize(_repeated_locationFix_codec); - if (gpsInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GpsInfo); - } - if (sensorInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SensorInfo); - } - if (deviceInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceInfo); - } - if (activityStatus_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ActivityStatus); - } - if (LocationHash1 != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LocationHash1); - } - if (LocationHash2 != 0UL) { - size += 2 + pb::CodedOutputStream.ComputeUInt64Size(LocationHash2); - } - if (SessionHash.Length != 0) { - size += 2 + pb::CodedOutputStream.ComputeBytesSize(SessionHash); - } - if (Timestamp != 0UL) { - size += 2 + pb::CodedOutputStream.ComputeUInt64Size(Timestamp); - } - size += requestHash_.CalculateSize(_repeated_requestHash_codec); - if (Unknown25 != 0L) { - size += 2 + pb::CodedOutputStream.ComputeInt64Size(Unknown25); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Signature other) { - if (other == null) { - return; - } - if (other.TimestampSinceStart != 0UL) { - TimestampSinceStart = other.TimestampSinceStart; - } - locationFix_.Add(other.locationFix_); - if (other.gpsInfo_ != null) { - if (gpsInfo_ == null) { - gpsInfo_ = new global::POGOProtos.Networking.Envelopes.Signature.Types.AndroidGpsInfo(); - } - GpsInfo.MergeFrom(other.GpsInfo); - } - if (other.sensorInfo_ != null) { - if (sensorInfo_ == null) { - sensorInfo_ = new global::POGOProtos.Networking.Envelopes.Signature.Types.SensorInfo(); - } - SensorInfo.MergeFrom(other.SensorInfo); - } - if (other.deviceInfo_ != null) { - if (deviceInfo_ == null) { - deviceInfo_ = new global::POGOProtos.Networking.Envelopes.Signature.Types.DeviceInfo(); - } - DeviceInfo.MergeFrom(other.DeviceInfo); - } - if (other.activityStatus_ != null) { - if (activityStatus_ == null) { - activityStatus_ = new global::POGOProtos.Networking.Envelopes.Signature.Types.ActivityStatus(); - } - ActivityStatus.MergeFrom(other.ActivityStatus); - } - if (other.LocationHash1 != 0UL) { - LocationHash1 = other.LocationHash1; - } - if (other.LocationHash2 != 0UL) { - LocationHash2 = other.LocationHash2; - } - if (other.SessionHash.Length != 0) { - SessionHash = other.SessionHash; - } - if (other.Timestamp != 0UL) { - Timestamp = other.Timestamp; - } - requestHash_.Add(other.requestHash_); - if (other.Unknown25 != 0L) { - Unknown25 = other.Unknown25; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 16: { - TimestampSinceStart = input.ReadUInt64(); - break; - } - case 34: { - locationFix_.AddEntriesFrom(input, _repeated_locationFix_codec); - break; - } - case 42: { - if (gpsInfo_ == null) { - gpsInfo_ = new global::POGOProtos.Networking.Envelopes.Signature.Types.AndroidGpsInfo(); - } - input.ReadMessage(gpsInfo_); - break; - } - case 58: { - if (sensorInfo_ == null) { - sensorInfo_ = new global::POGOProtos.Networking.Envelopes.Signature.Types.SensorInfo(); - } - input.ReadMessage(sensorInfo_); - break; - } - case 66: { - if (deviceInfo_ == null) { - deviceInfo_ = new global::POGOProtos.Networking.Envelopes.Signature.Types.DeviceInfo(); - } - input.ReadMessage(deviceInfo_); - break; - } - case 74: { - if (activityStatus_ == null) { - activityStatus_ = new global::POGOProtos.Networking.Envelopes.Signature.Types.ActivityStatus(); - } - input.ReadMessage(activityStatus_); - break; - } - case 80: { - LocationHash1 = input.ReadUInt64(); - break; - } - case 160: { - LocationHash2 = input.ReadUInt64(); - break; - } - case 178: { - SessionHash = input.ReadBytes(); - break; - } - case 184: { - Timestamp = input.ReadUInt64(); - break; - } - case 194: - case 192: { - requestHash_.AddEntriesFrom(input, _repeated_requestHash_codec); - break; - } - case 200: { - Unknown25 = input.ReadInt64(); - break; - } - } - } - } - - #region Nested types - /// Container for nested types declared in the Signature message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static partial class Types { - public sealed partial class LocationFix : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocationFix()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Envelopes.Signature.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public LocationFix() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public LocationFix(LocationFix other) : this() { - provider_ = other.provider_; - timestampSnapshot_ = other.timestampSnapshot_; - latitude_ = other.latitude_; - longitude_ = other.longitude_; - horizontalAccuracy_ = other.horizontalAccuracy_; - altitude_ = other.altitude_; - verticalAccuracy_ = other.verticalAccuracy_; - providerStatus_ = other.providerStatus_; - floor_ = other.floor_; - locationType_ = other.locationType_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public LocationFix Clone() { - return new LocationFix(this); - } - - /// Field number for the "provider" field. - public const int ProviderFieldNumber = 1; - private string provider_ = ""; - /// - /// "network", "gps", "fused", possibly others - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Provider { - get { return provider_; } - set { - provider_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "timestamp_snapshot" field. - public const int TimestampSnapshotFieldNumber = 2; - private ulong timestampSnapshot_; - /// - /// in ms since start - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong TimestampSnapshot { - get { return timestampSnapshot_; } - set { - timestampSnapshot_ = value; - } - } - - /// Field number for the "latitude" field. - public const int LatitudeFieldNumber = 13; - private float latitude_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public float Latitude { - get { return latitude_; } - set { - latitude_ = value; - } - } - - /// Field number for the "longitude" field. - public const int LongitudeFieldNumber = 14; - private float longitude_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public float Longitude { - get { return longitude_; } - set { - longitude_ = value; - } - } - - /// Field number for the "horizontal_accuracy" field. - public const int HorizontalAccuracyFieldNumber = 20; - private float horizontalAccuracy_; - /// - /// ??? shows up in struct, dunno where these go - /// float device_speed; - /// float device_course; - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public float HorizontalAccuracy { - get { return horizontalAccuracy_; } - set { - horizontalAccuracy_ = value; - } - } - - /// Field number for the "altitude" field. - public const int AltitudeFieldNumber = 21; - private float altitude_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public float Altitude { - get { return altitude_; } - set { - altitude_ = value; - } - } - - /// Field number for the "vertical_accuracy" field. - public const int VerticalAccuracyFieldNumber = 22; - private float verticalAccuracy_; - /// - /// iOS only? (range seems to be ~10-12) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public float VerticalAccuracy { - get { return verticalAccuracy_; } - set { - verticalAccuracy_ = value; - } - } - - /// Field number for the "provider_status" field. - public const int ProviderStatusFieldNumber = 26; - private ulong providerStatus_; - /// - /// Usually 3 (possibly GPS status: 1 = no fix, 2 = acquiring/inaccurate, 3 = fix acquired) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong ProviderStatus { - get { return providerStatus_; } - set { - providerStatus_ = value; - } - } - - /// Field number for the "floor" field. - public const int FloorFieldNumber = 27; - private uint floor_; - /// - /// On iOS there are some LocationFixes with unk26=1 and everything else empty - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public uint Floor { - get { return floor_; } - set { - floor_ = value; - } - } - - /// Field number for the "location_type" field. - public const int LocationTypeFieldNumber = 28; - private ulong locationType_; - /// - /// Always 1 (if there is data at all) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong LocationType { - get { return locationType_; } - set { - locationType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as LocationFix); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(LocationFix other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Provider != other.Provider) return false; - if (TimestampSnapshot != other.TimestampSnapshot) return false; - if (Latitude != other.Latitude) return false; - if (Longitude != other.Longitude) return false; - if (HorizontalAccuracy != other.HorizontalAccuracy) return false; - if (Altitude != other.Altitude) return false; - if (VerticalAccuracy != other.VerticalAccuracy) return false; - if (ProviderStatus != other.ProviderStatus) return false; - if (Floor != other.Floor) return false; - if (LocationType != other.LocationType) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (Provider.Length != 0) hash ^= Provider.GetHashCode(); - if (TimestampSnapshot != 0UL) hash ^= TimestampSnapshot.GetHashCode(); - if (Latitude != 0F) hash ^= Latitude.GetHashCode(); - if (Longitude != 0F) hash ^= Longitude.GetHashCode(); - if (HorizontalAccuracy != 0F) hash ^= HorizontalAccuracy.GetHashCode(); - if (Altitude != 0F) hash ^= Altitude.GetHashCode(); - if (VerticalAccuracy != 0F) hash ^= VerticalAccuracy.GetHashCode(); - if (ProviderStatus != 0UL) hash ^= ProviderStatus.GetHashCode(); - if (Floor != 0) hash ^= Floor.GetHashCode(); - if (LocationType != 0UL) hash ^= LocationType.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (Provider.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Provider); - } - if (TimestampSnapshot != 0UL) { - output.WriteRawTag(16); - output.WriteUInt64(TimestampSnapshot); - } - if (Latitude != 0F) { - output.WriteRawTag(109); - output.WriteFloat(Latitude); - } - if (Longitude != 0F) { - output.WriteRawTag(117); - output.WriteFloat(Longitude); - } - if (HorizontalAccuracy != 0F) { - output.WriteRawTag(165, 1); - output.WriteFloat(HorizontalAccuracy); - } - if (Altitude != 0F) { - output.WriteRawTag(173, 1); - output.WriteFloat(Altitude); - } - if (VerticalAccuracy != 0F) { - output.WriteRawTag(181, 1); - output.WriteFloat(VerticalAccuracy); - } - if (ProviderStatus != 0UL) { - output.WriteRawTag(208, 1); - output.WriteUInt64(ProviderStatus); - } - if (Floor != 0) { - output.WriteRawTag(216, 1); - output.WriteUInt32(Floor); - } - if (LocationType != 0UL) { - output.WriteRawTag(224, 1); - output.WriteUInt64(LocationType); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Provider.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Provider); - } - if (TimestampSnapshot != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TimestampSnapshot); - } - if (Latitude != 0F) { - size += 1 + 4; - } - if (Longitude != 0F) { - size += 1 + 4; - } - if (HorizontalAccuracy != 0F) { - size += 2 + 4; - } - if (Altitude != 0F) { - size += 2 + 4; - } - if (VerticalAccuracy != 0F) { - size += 2 + 4; - } - if (ProviderStatus != 0UL) { - size += 2 + pb::CodedOutputStream.ComputeUInt64Size(ProviderStatus); - } - if (Floor != 0) { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(Floor); - } - if (LocationType != 0UL) { - size += 2 + pb::CodedOutputStream.ComputeUInt64Size(LocationType); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(LocationFix other) { - if (other == null) { - return; - } - if (other.Provider.Length != 0) { - Provider = other.Provider; - } - if (other.TimestampSnapshot != 0UL) { - TimestampSnapshot = other.TimestampSnapshot; - } - if (other.Latitude != 0F) { - Latitude = other.Latitude; - } - if (other.Longitude != 0F) { - Longitude = other.Longitude; - } - if (other.HorizontalAccuracy != 0F) { - HorizontalAccuracy = other.HorizontalAccuracy; - } - if (other.Altitude != 0F) { - Altitude = other.Altitude; - } - if (other.VerticalAccuracy != 0F) { - VerticalAccuracy = other.VerticalAccuracy; - } - if (other.ProviderStatus != 0UL) { - ProviderStatus = other.ProviderStatus; - } - if (other.Floor != 0) { - Floor = other.Floor; - } - if (other.LocationType != 0UL) { - LocationType = other.LocationType; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - Provider = input.ReadString(); - break; - } - case 16: { - TimestampSnapshot = input.ReadUInt64(); - break; - } - case 109: { - Latitude = input.ReadFloat(); - break; - } - case 117: { - Longitude = input.ReadFloat(); - break; - } - case 165: { - HorizontalAccuracy = input.ReadFloat(); - break; - } - case 173: { - Altitude = input.ReadFloat(); - break; - } - case 181: { - VerticalAccuracy = input.ReadFloat(); - break; - } - case 208: { - ProviderStatus = input.ReadUInt64(); - break; - } - case 216: { - Floor = input.ReadUInt32(); - break; - } - case 224: { - LocationType = input.ReadUInt64(); - break; - } - } - } - } - - } - - /// - /// don't really care about this since we're not using it - /// - public sealed partial class AndroidGpsInfo : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AndroidGpsInfo()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Envelopes.Signature.Descriptor.NestedTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public AndroidGpsInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public AndroidGpsInfo(AndroidGpsInfo other) : this() { - timeToFix_ = other.timeToFix_; - satellitesPrn_ = other.satellitesPrn_.Clone(); - azimuth_ = other.azimuth_.Clone(); - elevation_ = other.elevation_.Clone(); - snr_ = other.snr_.Clone(); - hasAlmanac_ = other.hasAlmanac_.Clone(); - hasEphemeris_ = other.hasEphemeris_.Clone(); - usedInFix_ = other.usedInFix_.Clone(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public AndroidGpsInfo Clone() { - return new AndroidGpsInfo(this); - } - - /// Field number for the "time_to_fix" field. - public const int TimeToFixFieldNumber = 1; - private ulong timeToFix_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong TimeToFix { - get { return timeToFix_; } - set { - timeToFix_ = value; - } - } - - /// Field number for the "satellites_prn" field. - public const int SatellitesPrnFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_satellitesPrn_codec - = pb::FieldCodec.ForInt32(18); - private readonly pbc::RepeatedField satellitesPrn_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField SatellitesPrn { - get { return satellitesPrn_; } - } - - /// Field number for the "azimuth" field. - public const int AzimuthFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_azimuth_codec - = pb::FieldCodec.ForFloat(26); - private readonly pbc::RepeatedField azimuth_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Azimuth { - get { return azimuth_; } - } - - /// Field number for the "elevation" field. - public const int ElevationFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_elevation_codec - = pb::FieldCodec.ForFloat(34); - private readonly pbc::RepeatedField elevation_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Elevation { - get { return elevation_; } - } - - /// Field number for the "snr" field. - public const int SnrFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_snr_codec - = pb::FieldCodec.ForFloat(42); - private readonly pbc::RepeatedField snr_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Snr { - get { return snr_; } - } - - /// Field number for the "has_almanac" field. - public const int HasAlmanacFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_hasAlmanac_codec - = pb::FieldCodec.ForBool(50); - private readonly pbc::RepeatedField hasAlmanac_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField HasAlmanac { - get { return hasAlmanac_; } - } - - /// Field number for the "has_ephemeris" field. - public const int HasEphemerisFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_hasEphemeris_codec - = pb::FieldCodec.ForBool(58); - private readonly pbc::RepeatedField hasEphemeris_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField HasEphemeris { - get { return hasEphemeris_; } - } - - /// Field number for the "used_in_fix" field. - public const int UsedInFixFieldNumber = 8; - private static readonly pb::FieldCodec _repeated_usedInFix_codec - = pb::FieldCodec.ForBool(66); - private readonly pbc::RepeatedField usedInFix_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField UsedInFix { - get { return usedInFix_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as AndroidGpsInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(AndroidGpsInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TimeToFix != other.TimeToFix) return false; - if(!satellitesPrn_.Equals(other.satellitesPrn_)) return false; - if(!azimuth_.Equals(other.azimuth_)) return false; - if(!elevation_.Equals(other.elevation_)) return false; - if(!snr_.Equals(other.snr_)) return false; - if(!hasAlmanac_.Equals(other.hasAlmanac_)) return false; - if(!hasEphemeris_.Equals(other.hasEphemeris_)) return false; - if(!usedInFix_.Equals(other.usedInFix_)) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (TimeToFix != 0UL) hash ^= TimeToFix.GetHashCode(); - hash ^= satellitesPrn_.GetHashCode(); - hash ^= azimuth_.GetHashCode(); - hash ^= elevation_.GetHashCode(); - hash ^= snr_.GetHashCode(); - hash ^= hasAlmanac_.GetHashCode(); - hash ^= hasEphemeris_.GetHashCode(); - hash ^= usedInFix_.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (TimeToFix != 0UL) { - output.WriteRawTag(8); - output.WriteUInt64(TimeToFix); - } - satellitesPrn_.WriteTo(output, _repeated_satellitesPrn_codec); - azimuth_.WriteTo(output, _repeated_azimuth_codec); - elevation_.WriteTo(output, _repeated_elevation_codec); - snr_.WriteTo(output, _repeated_snr_codec); - hasAlmanac_.WriteTo(output, _repeated_hasAlmanac_codec); - hasEphemeris_.WriteTo(output, _repeated_hasEphemeris_codec); - usedInFix_.WriteTo(output, _repeated_usedInFix_codec); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (TimeToFix != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TimeToFix); - } - size += satellitesPrn_.CalculateSize(_repeated_satellitesPrn_codec); - size += azimuth_.CalculateSize(_repeated_azimuth_codec); - size += elevation_.CalculateSize(_repeated_elevation_codec); - size += snr_.CalculateSize(_repeated_snr_codec); - size += hasAlmanac_.CalculateSize(_repeated_hasAlmanac_codec); - size += hasEphemeris_.CalculateSize(_repeated_hasEphemeris_codec); - size += usedInFix_.CalculateSize(_repeated_usedInFix_codec); - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(AndroidGpsInfo other) { - if (other == null) { - return; - } - if (other.TimeToFix != 0UL) { - TimeToFix = other.TimeToFix; - } - satellitesPrn_.Add(other.satellitesPrn_); - azimuth_.Add(other.azimuth_); - elevation_.Add(other.elevation_); - snr_.Add(other.snr_); - hasAlmanac_.Add(other.hasAlmanac_); - hasEphemeris_.Add(other.hasEphemeris_); - usedInFix_.Add(other.usedInFix_); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 8: { - TimeToFix = input.ReadUInt64(); - break; - } - case 18: - case 16: { - satellitesPrn_.AddEntriesFrom(input, _repeated_satellitesPrn_codec); - break; - } - case 26: - case 29: { - azimuth_.AddEntriesFrom(input, _repeated_azimuth_codec); - break; - } - case 34: - case 37: { - elevation_.AddEntriesFrom(input, _repeated_elevation_codec); - break; - } - case 42: - case 45: { - snr_.AddEntriesFrom(input, _repeated_snr_codec); - break; - } - case 50: - case 48: { - hasAlmanac_.AddEntriesFrom(input, _repeated_hasAlmanac_codec); - break; - } - case 58: - case 56: { - hasEphemeris_.AddEntriesFrom(input, _repeated_hasEphemeris_codec); - break; - } - case 66: - case 64: { - usedInFix_.AddEntriesFrom(input, _repeated_usedInFix_codec); - break; - } - } - } - } - - } - - public sealed partial class SensorInfo : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SensorInfo()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Envelopes.Signature.Descriptor.NestedTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public SensorInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public SensorInfo(SensorInfo other) : this() { - timestampSnapshot_ = other.timestampSnapshot_; - magnetometerX_ = other.magnetometerX_; - magnetometerY_ = other.magnetometerY_; - magnetometerZ_ = other.magnetometerZ_; - angleNormalizedX_ = other.angleNormalizedX_; - angleNormalizedY_ = other.angleNormalizedY_; - angleNormalizedZ_ = other.angleNormalizedZ_; - accelRawX_ = other.accelRawX_; - accelRawY_ = other.accelRawY_; - accelRawZ_ = other.accelRawZ_; - gyroscopeRawX_ = other.gyroscopeRawX_; - gyroscopeRawY_ = other.gyroscopeRawY_; - gyroscopeRawZ_ = other.gyroscopeRawZ_; - accelNormalizedX_ = other.accelNormalizedX_; - accelNormalizedY_ = other.accelNormalizedY_; - accelNormalizedZ_ = other.accelNormalizedZ_; - accelerometerAxes_ = other.accelerometerAxes_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public SensorInfo Clone() { - return new SensorInfo(this); - } - - /// Field number for the "timestamp_snapshot" field. - public const int TimestampSnapshotFieldNumber = 1; - private ulong timestampSnapshot_; - /// - /// in ms since start - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong TimestampSnapshot { - get { return timestampSnapshot_; } - set { - timestampSnapshot_ = value; - } - } - - /// Field number for the "magnetometer_x" field. - public const int MagnetometerXFieldNumber = 3; - private double magnetometerX_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double MagnetometerX { - get { return magnetometerX_; } - set { - magnetometerX_ = value; - } - } - - /// Field number for the "magnetometer_y" field. - public const int MagnetometerYFieldNumber = 4; - private double magnetometerY_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double MagnetometerY { - get { return magnetometerY_; } - set { - magnetometerY_ = value; - } - } - - /// Field number for the "magnetometer_z" field. - public const int MagnetometerZFieldNumber = 5; - private double magnetometerZ_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double MagnetometerZ { - get { return magnetometerZ_; } - set { - magnetometerZ_ = value; - } - } - - /// Field number for the "angle_normalized_x" field. - public const int AngleNormalizedXFieldNumber = 6; - private double angleNormalizedX_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double AngleNormalizedX { - get { return angleNormalizedX_; } - set { - angleNormalizedX_ = value; - } - } - - /// Field number for the "angle_normalized_y" field. - public const int AngleNormalizedYFieldNumber = 7; - private double angleNormalizedY_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double AngleNormalizedY { - get { return angleNormalizedY_; } - set { - angleNormalizedY_ = value; - } - } - - /// Field number for the "angle_normalized_z" field. - public const int AngleNormalizedZFieldNumber = 8; - private double angleNormalizedZ_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double AngleNormalizedZ { - get { return angleNormalizedZ_; } - set { - angleNormalizedZ_ = value; - } - } - - /// Field number for the "accel_raw_x" field. - public const int AccelRawXFieldNumber = 10; - private double accelRawX_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double AccelRawX { - get { return accelRawX_; } - set { - accelRawX_ = value; - } - } - - /// Field number for the "accel_raw_y" field. - public const int AccelRawYFieldNumber = 11; - private double accelRawY_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double AccelRawY { - get { return accelRawY_; } - set { - accelRawY_ = value; - } - } - - /// Field number for the "accel_raw_z" field. - public const int AccelRawZFieldNumber = 12; - private double accelRawZ_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double AccelRawZ { - get { return accelRawZ_; } - set { - accelRawZ_ = value; - } - } - - /// Field number for the "gyroscope_raw_x" field. - public const int GyroscopeRawXFieldNumber = 13; - private double gyroscopeRawX_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double GyroscopeRawX { - get { return gyroscopeRawX_; } - set { - gyroscopeRawX_ = value; - } - } - - /// Field number for the "gyroscope_raw_y" field. - public const int GyroscopeRawYFieldNumber = 14; - private double gyroscopeRawY_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double GyroscopeRawY { - get { return gyroscopeRawY_; } - set { - gyroscopeRawY_ = value; - } - } - - /// Field number for the "gyroscope_raw_z" field. - public const int GyroscopeRawZFieldNumber = 15; - private double gyroscopeRawZ_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double GyroscopeRawZ { - get { return gyroscopeRawZ_; } - set { - gyroscopeRawZ_ = value; - } - } - - /// Field number for the "accel_normalized_x" field. - public const int AccelNormalizedXFieldNumber = 16; - private double accelNormalizedX_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double AccelNormalizedX { - get { return accelNormalizedX_; } - set { - accelNormalizedX_ = value; - } - } - - /// Field number for the "accel_normalized_y" field. - public const int AccelNormalizedYFieldNumber = 17; - private double accelNormalizedY_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double AccelNormalizedY { - get { return accelNormalizedY_; } - set { - accelNormalizedY_ = value; - } - } - - /// Field number for the "accel_normalized_z" field. - public const int AccelNormalizedZFieldNumber = 18; - private double accelNormalizedZ_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double AccelNormalizedZ { - get { return accelNormalizedZ_; } - set { - accelNormalizedZ_ = value; - } - } - - /// Field number for the "accelerometer_axes" field. - public const int AccelerometerAxesFieldNumber = 19; - private ulong accelerometerAxes_; - /// - /// Always 3 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong AccelerometerAxes { - get { return accelerometerAxes_; } - set { - accelerometerAxes_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as SensorInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(SensorInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TimestampSnapshot != other.TimestampSnapshot) return false; - if (MagnetometerX != other.MagnetometerX) return false; - if (MagnetometerY != other.MagnetometerY) return false; - if (MagnetometerZ != other.MagnetometerZ) return false; - if (AngleNormalizedX != other.AngleNormalizedX) return false; - if (AngleNormalizedY != other.AngleNormalizedY) return false; - if (AngleNormalizedZ != other.AngleNormalizedZ) return false; - if (AccelRawX != other.AccelRawX) return false; - if (AccelRawY != other.AccelRawY) return false; - if (AccelRawZ != other.AccelRawZ) return false; - if (GyroscopeRawX != other.GyroscopeRawX) return false; - if (GyroscopeRawY != other.GyroscopeRawY) return false; - if (GyroscopeRawZ != other.GyroscopeRawZ) return false; - if (AccelNormalizedX != other.AccelNormalizedX) return false; - if (AccelNormalizedY != other.AccelNormalizedY) return false; - if (AccelNormalizedZ != other.AccelNormalizedZ) return false; - if (AccelerometerAxes != other.AccelerometerAxes) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (TimestampSnapshot != 0UL) hash ^= TimestampSnapshot.GetHashCode(); - if (MagnetometerX != 0D) hash ^= MagnetometerX.GetHashCode(); - if (MagnetometerY != 0D) hash ^= MagnetometerY.GetHashCode(); - if (MagnetometerZ != 0D) hash ^= MagnetometerZ.GetHashCode(); - if (AngleNormalizedX != 0D) hash ^= AngleNormalizedX.GetHashCode(); - if (AngleNormalizedY != 0D) hash ^= AngleNormalizedY.GetHashCode(); - if (AngleNormalizedZ != 0D) hash ^= AngleNormalizedZ.GetHashCode(); - if (AccelRawX != 0D) hash ^= AccelRawX.GetHashCode(); - if (AccelRawY != 0D) hash ^= AccelRawY.GetHashCode(); - if (AccelRawZ != 0D) hash ^= AccelRawZ.GetHashCode(); - if (GyroscopeRawX != 0D) hash ^= GyroscopeRawX.GetHashCode(); - if (GyroscopeRawY != 0D) hash ^= GyroscopeRawY.GetHashCode(); - if (GyroscopeRawZ != 0D) hash ^= GyroscopeRawZ.GetHashCode(); - if (AccelNormalizedX != 0D) hash ^= AccelNormalizedX.GetHashCode(); - if (AccelNormalizedY != 0D) hash ^= AccelNormalizedY.GetHashCode(); - if (AccelNormalizedZ != 0D) hash ^= AccelNormalizedZ.GetHashCode(); - if (AccelerometerAxes != 0UL) hash ^= AccelerometerAxes.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (TimestampSnapshot != 0UL) { - output.WriteRawTag(8); - output.WriteUInt64(TimestampSnapshot); - } - if (MagnetometerX != 0D) { - output.WriteRawTag(25); - output.WriteDouble(MagnetometerX); - } - if (MagnetometerY != 0D) { - output.WriteRawTag(33); - output.WriteDouble(MagnetometerY); - } - if (MagnetometerZ != 0D) { - output.WriteRawTag(41); - output.WriteDouble(MagnetometerZ); - } - if (AngleNormalizedX != 0D) { - output.WriteRawTag(49); - output.WriteDouble(AngleNormalizedX); - } - if (AngleNormalizedY != 0D) { - output.WriteRawTag(57); - output.WriteDouble(AngleNormalizedY); - } - if (AngleNormalizedZ != 0D) { - output.WriteRawTag(65); - output.WriteDouble(AngleNormalizedZ); - } - if (AccelRawX != 0D) { - output.WriteRawTag(81); - output.WriteDouble(AccelRawX); - } - if (AccelRawY != 0D) { - output.WriteRawTag(89); - output.WriteDouble(AccelRawY); - } - if (AccelRawZ != 0D) { - output.WriteRawTag(97); - output.WriteDouble(AccelRawZ); - } - if (GyroscopeRawX != 0D) { - output.WriteRawTag(105); - output.WriteDouble(GyroscopeRawX); - } - if (GyroscopeRawY != 0D) { - output.WriteRawTag(113); - output.WriteDouble(GyroscopeRawY); - } - if (GyroscopeRawZ != 0D) { - output.WriteRawTag(121); - output.WriteDouble(GyroscopeRawZ); - } - if (AccelNormalizedX != 0D) { - output.WriteRawTag(129, 1); - output.WriteDouble(AccelNormalizedX); - } - if (AccelNormalizedY != 0D) { - output.WriteRawTag(137, 1); - output.WriteDouble(AccelNormalizedY); - } - if (AccelNormalizedZ != 0D) { - output.WriteRawTag(145, 1); - output.WriteDouble(AccelNormalizedZ); - } - if (AccelerometerAxes != 0UL) { - output.WriteRawTag(152, 1); - output.WriteUInt64(AccelerometerAxes); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (TimestampSnapshot != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TimestampSnapshot); - } - if (MagnetometerX != 0D) { - size += 1 + 8; - } - if (MagnetometerY != 0D) { - size += 1 + 8; - } - if (MagnetometerZ != 0D) { - size += 1 + 8; - } - if (AngleNormalizedX != 0D) { - size += 1 + 8; - } - if (AngleNormalizedY != 0D) { - size += 1 + 8; - } - if (AngleNormalizedZ != 0D) { - size += 1 + 8; - } - if (AccelRawX != 0D) { - size += 1 + 8; - } - if (AccelRawY != 0D) { - size += 1 + 8; - } - if (AccelRawZ != 0D) { - size += 1 + 8; - } - if (GyroscopeRawX != 0D) { - size += 1 + 8; - } - if (GyroscopeRawY != 0D) { - size += 1 + 8; - } - if (GyroscopeRawZ != 0D) { - size += 1 + 8; - } - if (AccelNormalizedX != 0D) { - size += 2 + 8; - } - if (AccelNormalizedY != 0D) { - size += 2 + 8; - } - if (AccelNormalizedZ != 0D) { - size += 2 + 8; - } - if (AccelerometerAxes != 0UL) { - size += 2 + pb::CodedOutputStream.ComputeUInt64Size(AccelerometerAxes); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(SensorInfo other) { - if (other == null) { - return; - } - if (other.TimestampSnapshot != 0UL) { - TimestampSnapshot = other.TimestampSnapshot; - } - if (other.MagnetometerX != 0D) { - MagnetometerX = other.MagnetometerX; - } - if (other.MagnetometerY != 0D) { - MagnetometerY = other.MagnetometerY; - } - if (other.MagnetometerZ != 0D) { - MagnetometerZ = other.MagnetometerZ; - } - if (other.AngleNormalizedX != 0D) { - AngleNormalizedX = other.AngleNormalizedX; - } - if (other.AngleNormalizedY != 0D) { - AngleNormalizedY = other.AngleNormalizedY; - } - if (other.AngleNormalizedZ != 0D) { - AngleNormalizedZ = other.AngleNormalizedZ; - } - if (other.AccelRawX != 0D) { - AccelRawX = other.AccelRawX; - } - if (other.AccelRawY != 0D) { - AccelRawY = other.AccelRawY; - } - if (other.AccelRawZ != 0D) { - AccelRawZ = other.AccelRawZ; - } - if (other.GyroscopeRawX != 0D) { - GyroscopeRawX = other.GyroscopeRawX; - } - if (other.GyroscopeRawY != 0D) { - GyroscopeRawY = other.GyroscopeRawY; - } - if (other.GyroscopeRawZ != 0D) { - GyroscopeRawZ = other.GyroscopeRawZ; - } - if (other.AccelNormalizedX != 0D) { - AccelNormalizedX = other.AccelNormalizedX; - } - if (other.AccelNormalizedY != 0D) { - AccelNormalizedY = other.AccelNormalizedY; - } - if (other.AccelNormalizedZ != 0D) { - AccelNormalizedZ = other.AccelNormalizedZ; - } - if (other.AccelerometerAxes != 0UL) { - AccelerometerAxes = other.AccelerometerAxes; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 8: { - TimestampSnapshot = input.ReadUInt64(); - break; - } - case 25: { - MagnetometerX = input.ReadDouble(); - break; - } - case 33: { - MagnetometerY = input.ReadDouble(); - break; - } - case 41: { - MagnetometerZ = input.ReadDouble(); - break; - } - case 49: { - AngleNormalizedX = input.ReadDouble(); - break; - } - case 57: { - AngleNormalizedY = input.ReadDouble(); - break; - } - case 65: { - AngleNormalizedZ = input.ReadDouble(); - break; - } - case 81: { - AccelRawX = input.ReadDouble(); - break; - } - case 89: { - AccelRawY = input.ReadDouble(); - break; - } - case 97: { - AccelRawZ = input.ReadDouble(); - break; - } - case 105: { - GyroscopeRawX = input.ReadDouble(); - break; - } - case 113: { - GyroscopeRawY = input.ReadDouble(); - break; - } - case 121: { - GyroscopeRawZ = input.ReadDouble(); - break; - } - case 129: { - AccelNormalizedX = input.ReadDouble(); - break; - } - case 137: { - AccelNormalizedY = input.ReadDouble(); - break; - } - case 145: { - AccelNormalizedZ = input.ReadDouble(); - break; - } - case 152: { - AccelerometerAxes = input.ReadUInt64(); - break; - } - } - } - } - - } - - public sealed partial class DeviceInfo : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceInfo()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Envelopes.Signature.Descriptor.NestedTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public DeviceInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public DeviceInfo(DeviceInfo other) : this() { - deviceId_ = other.deviceId_; - androidBoardName_ = other.androidBoardName_; - androidBootloader_ = other.androidBootloader_; - deviceBrand_ = other.deviceBrand_; - deviceModel_ = other.deviceModel_; - deviceModelIdentifier_ = other.deviceModelIdentifier_; - deviceModelBoot_ = other.deviceModelBoot_; - hardwareManufacturer_ = other.hardwareManufacturer_; - hardwareModel_ = other.hardwareModel_; - firmwareBrand_ = other.firmwareBrand_; - firmwareTags_ = other.firmwareTags_; - firmwareType_ = other.firmwareType_; - firmwareFingerprint_ = other.firmwareFingerprint_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public DeviceInfo Clone() { - return new DeviceInfo(this); - } - - /// Field number for the "device_id" field. - public const int DeviceIdFieldNumber = 1; - private string deviceId_ = ""; - /// - /// Hex string - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string DeviceId { - get { return deviceId_; } - set { - deviceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "android_board_name" field. - public const int AndroidBoardNameFieldNumber = 2; - private string androidBoardName_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string AndroidBoardName { - get { return androidBoardName_; } - set { - androidBoardName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "android_bootloader" field. - public const int AndroidBootloaderFieldNumber = 3; - private string androidBootloader_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string AndroidBootloader { - get { return androidBootloader_; } - set { - androidBootloader_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_brand" field. - public const int DeviceBrandFieldNumber = 4; - private string deviceBrand_ = ""; - /// - /// On Android: product.brand - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string DeviceBrand { - get { return deviceBrand_; } - set { - deviceBrand_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_model" field. - public const int DeviceModelFieldNumber = 5; - private string deviceModel_ = ""; - /// - /// On Android: product.device - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string DeviceModel { - get { return deviceModel_; } - set { - deviceModel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_model_identifier" field. - public const int DeviceModelIdentifierFieldNumber = 6; - private string deviceModelIdentifier_ = ""; - /// - /// Android only, build.display.id - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string DeviceModelIdentifier { - get { return deviceModelIdentifier_; } - set { - deviceModelIdentifier_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_model_boot" field. - public const int DeviceModelBootFieldNumber = 7; - private string deviceModelBoot_ = ""; - /// - /// On Android: boot.hardware - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string DeviceModelBoot { - get { return deviceModelBoot_; } - set { - deviceModelBoot_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "hardware_manufacturer" field. - public const int HardwareManufacturerFieldNumber = 8; - private string hardwareManufacturer_ = ""; - /// - /// On Android: product.manufacturer - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string HardwareManufacturer { - get { return hardwareManufacturer_; } - set { - hardwareManufacturer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "hardware_model" field. - public const int HardwareModelFieldNumber = 9; - private string hardwareModel_ = ""; - /// - /// On Android: product.model - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string HardwareModel { - get { return hardwareModel_; } - set { - hardwareModel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "firmware_brand" field. - public const int FirmwareBrandFieldNumber = 10; - private string firmwareBrand_ = ""; - /// - /// On Android: product.name, on iOS: "iPhone OS" - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string FirmwareBrand { - get { return firmwareBrand_; } - set { - firmwareBrand_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "firmware_tags" field. - public const int FirmwareTagsFieldNumber = 12; - private string firmwareTags_ = ""; - /// - /// Android only, build.tags - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string FirmwareTags { - get { return firmwareTags_; } - set { - firmwareTags_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "firmware_type" field. - public const int FirmwareTypeFieldNumber = 13; - private string firmwareType_ = ""; - /// - /// On Android: build.type, on iOS instead: iOS version - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string FirmwareType { - get { return firmwareType_; } - set { - firmwareType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "firmware_fingerprint" field. - public const int FirmwareFingerprintFieldNumber = 14; - private string firmwareFingerprint_ = ""; - /// - /// Android only, build.fingerprint - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string FirmwareFingerprint { - get { return firmwareFingerprint_; } - set { - firmwareFingerprint_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as DeviceInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(DeviceInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DeviceId != other.DeviceId) return false; - if (AndroidBoardName != other.AndroidBoardName) return false; - if (AndroidBootloader != other.AndroidBootloader) return false; - if (DeviceBrand != other.DeviceBrand) return false; - if (DeviceModel != other.DeviceModel) return false; - if (DeviceModelIdentifier != other.DeviceModelIdentifier) return false; - if (DeviceModelBoot != other.DeviceModelBoot) return false; - if (HardwareManufacturer != other.HardwareManufacturer) return false; - if (HardwareModel != other.HardwareModel) return false; - if (FirmwareBrand != other.FirmwareBrand) return false; - if (FirmwareTags != other.FirmwareTags) return false; - if (FirmwareType != other.FirmwareType) return false; - if (FirmwareFingerprint != other.FirmwareFingerprint) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (DeviceId.Length != 0) hash ^= DeviceId.GetHashCode(); - if (AndroidBoardName.Length != 0) hash ^= AndroidBoardName.GetHashCode(); - if (AndroidBootloader.Length != 0) hash ^= AndroidBootloader.GetHashCode(); - if (DeviceBrand.Length != 0) hash ^= DeviceBrand.GetHashCode(); - if (DeviceModel.Length != 0) hash ^= DeviceModel.GetHashCode(); - if (DeviceModelIdentifier.Length != 0) hash ^= DeviceModelIdentifier.GetHashCode(); - if (DeviceModelBoot.Length != 0) hash ^= DeviceModelBoot.GetHashCode(); - if (HardwareManufacturer.Length != 0) hash ^= HardwareManufacturer.GetHashCode(); - if (HardwareModel.Length != 0) hash ^= HardwareModel.GetHashCode(); - if (FirmwareBrand.Length != 0) hash ^= FirmwareBrand.GetHashCode(); - if (FirmwareTags.Length != 0) hash ^= FirmwareTags.GetHashCode(); - if (FirmwareType.Length != 0) hash ^= FirmwareType.GetHashCode(); - if (FirmwareFingerprint.Length != 0) hash ^= FirmwareFingerprint.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (DeviceId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DeviceId); - } - if (AndroidBoardName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(AndroidBoardName); - } - if (AndroidBootloader.Length != 0) { - output.WriteRawTag(26); - output.WriteString(AndroidBootloader); - } - if (DeviceBrand.Length != 0) { - output.WriteRawTag(34); - output.WriteString(DeviceBrand); - } - if (DeviceModel.Length != 0) { - output.WriteRawTag(42); - output.WriteString(DeviceModel); - } - if (DeviceModelIdentifier.Length != 0) { - output.WriteRawTag(50); - output.WriteString(DeviceModelIdentifier); - } - if (DeviceModelBoot.Length != 0) { - output.WriteRawTag(58); - output.WriteString(DeviceModelBoot); - } - if (HardwareManufacturer.Length != 0) { - output.WriteRawTag(66); - output.WriteString(HardwareManufacturer); - } - if (HardwareModel.Length != 0) { - output.WriteRawTag(74); - output.WriteString(HardwareModel); - } - if (FirmwareBrand.Length != 0) { - output.WriteRawTag(82); - output.WriteString(FirmwareBrand); - } - if (FirmwareTags.Length != 0) { - output.WriteRawTag(98); - output.WriteString(FirmwareTags); - } - if (FirmwareType.Length != 0) { - output.WriteRawTag(106); - output.WriteString(FirmwareType); - } - if (FirmwareFingerprint.Length != 0) { - output.WriteRawTag(114); - output.WriteString(FirmwareFingerprint); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (DeviceId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceId); - } - if (AndroidBoardName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AndroidBoardName); - } - if (AndroidBootloader.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AndroidBootloader); - } - if (DeviceBrand.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceBrand); - } - if (DeviceModel.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceModel); - } - if (DeviceModelIdentifier.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceModelIdentifier); - } - if (DeviceModelBoot.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceModelBoot); - } - if (HardwareManufacturer.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(HardwareManufacturer); - } - if (HardwareModel.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(HardwareModel); - } - if (FirmwareBrand.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FirmwareBrand); - } - if (FirmwareTags.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FirmwareTags); - } - if (FirmwareType.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FirmwareType); - } - if (FirmwareFingerprint.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FirmwareFingerprint); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(DeviceInfo other) { - if (other == null) { - return; - } - if (other.DeviceId.Length != 0) { - DeviceId = other.DeviceId; - } - if (other.AndroidBoardName.Length != 0) { - AndroidBoardName = other.AndroidBoardName; - } - if (other.AndroidBootloader.Length != 0) { - AndroidBootloader = other.AndroidBootloader; - } - if (other.DeviceBrand.Length != 0) { - DeviceBrand = other.DeviceBrand; - } - if (other.DeviceModel.Length != 0) { - DeviceModel = other.DeviceModel; - } - if (other.DeviceModelIdentifier.Length != 0) { - DeviceModelIdentifier = other.DeviceModelIdentifier; - } - if (other.DeviceModelBoot.Length != 0) { - DeviceModelBoot = other.DeviceModelBoot; - } - if (other.HardwareManufacturer.Length != 0) { - HardwareManufacturer = other.HardwareManufacturer; - } - if (other.HardwareModel.Length != 0) { - HardwareModel = other.HardwareModel; - } - if (other.FirmwareBrand.Length != 0) { - FirmwareBrand = other.FirmwareBrand; - } - if (other.FirmwareTags.Length != 0) { - FirmwareTags = other.FirmwareTags; - } - if (other.FirmwareType.Length != 0) { - FirmwareType = other.FirmwareType; - } - if (other.FirmwareFingerprint.Length != 0) { - FirmwareFingerprint = other.FirmwareFingerprint; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - DeviceId = input.ReadString(); - break; - } - case 18: { - AndroidBoardName = input.ReadString(); - break; - } - case 26: { - AndroidBootloader = input.ReadString(); - break; - } - case 34: { - DeviceBrand = input.ReadString(); - break; - } - case 42: { - DeviceModel = input.ReadString(); - break; - } - case 50: { - DeviceModelIdentifier = input.ReadString(); - break; - } - case 58: { - DeviceModelBoot = input.ReadString(); - break; - } - case 66: { - HardwareManufacturer = input.ReadString(); - break; - } - case 74: { - HardwareModel = input.ReadString(); - break; - } - case 82: { - FirmwareBrand = input.ReadString(); - break; - } - case 98: { - FirmwareTags = input.ReadString(); - break; - } - case 106: { - FirmwareType = input.ReadString(); - break; - } - case 114: { - FirmwareFingerprint = input.ReadString(); - break; - } - } - } - } - - } - - /// - /// Only used in iOS - Android just sends an empty version - /// - public sealed partial class ActivityStatus : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActivityStatus()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Envelopes.Signature.Descriptor.NestedTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ActivityStatus() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ActivityStatus(ActivityStatus other) : this() { - startTimeMs_ = other.startTimeMs_; - unknownStatus_ = other.unknownStatus_; - walking_ = other.walking_; - running_ = other.running_; - stationary_ = other.stationary_; - automotive_ = other.automotive_; - tilting_ = other.tilting_; - cycling_ = other.cycling_; - status_ = other.status_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ActivityStatus Clone() { - return new ActivityStatus(this); - } - - /// Field number for the "start_time_ms" field. - public const int StartTimeMsFieldNumber = 1; - private ulong startTimeMs_; - /// - /// all of these had 1 as their value - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong StartTimeMs { - get { return startTimeMs_; } - set { - startTimeMs_ = value; - } - } - - /// Field number for the "unknown_status" field. - public const int UnknownStatusFieldNumber = 2; - private bool unknownStatus_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool UnknownStatus { - get { return unknownStatus_; } - set { - unknownStatus_ = value; - } - } - - /// Field number for the "walking" field. - public const int WalkingFieldNumber = 3; - private bool walking_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Walking { - get { return walking_; } - set { - walking_ = value; - } - } - - /// Field number for the "running" field. - public const int RunningFieldNumber = 4; - private bool running_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Running { - get { return running_; } - set { - running_ = value; - } - } - - /// Field number for the "stationary" field. - public const int StationaryFieldNumber = 5; - private bool stationary_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Stationary { - get { return stationary_; } - set { - stationary_ = value; - } - } - - /// Field number for the "automotive" field. - public const int AutomotiveFieldNumber = 6; - private bool automotive_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Automotive { - get { return automotive_; } - set { - automotive_ = value; - } - } - - /// Field number for the "tilting" field. - public const int TiltingFieldNumber = 7; - private bool tilting_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Tilting { - get { return tilting_; } - set { - tilting_ = value; - } - } - - /// Field number for the "cycling" field. - public const int CyclingFieldNumber = 8; - private bool cycling_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Cycling { - get { return cycling_; } - set { - cycling_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 9; - private pb::ByteString status_ = pb::ByteString.Empty; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pb::ByteString Status { - get { return status_; } - set { - status_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as ActivityStatus); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(ActivityStatus other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (StartTimeMs != other.StartTimeMs) return false; - if (UnknownStatus != other.UnknownStatus) return false; - if (Walking != other.Walking) return false; - if (Running != other.Running) return false; - if (Stationary != other.Stationary) return false; - if (Automotive != other.Automotive) return false; - if (Tilting != other.Tilting) return false; - if (Cycling != other.Cycling) return false; - if (Status != other.Status) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (StartTimeMs != 0UL) hash ^= StartTimeMs.GetHashCode(); - if (UnknownStatus != false) hash ^= UnknownStatus.GetHashCode(); - if (Walking != false) hash ^= Walking.GetHashCode(); - if (Running != false) hash ^= Running.GetHashCode(); - if (Stationary != false) hash ^= Stationary.GetHashCode(); - if (Automotive != false) hash ^= Automotive.GetHashCode(); - if (Tilting != false) hash ^= Tilting.GetHashCode(); - if (Cycling != false) hash ^= Cycling.GetHashCode(); - if (Status.Length != 0) hash ^= Status.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (StartTimeMs != 0UL) { - output.WriteRawTag(8); - output.WriteUInt64(StartTimeMs); - } - if (UnknownStatus != false) { - output.WriteRawTag(16); - output.WriteBool(UnknownStatus); - } - if (Walking != false) { - output.WriteRawTag(24); - output.WriteBool(Walking); - } - if (Running != false) { - output.WriteRawTag(32); - output.WriteBool(Running); - } - if (Stationary != false) { - output.WriteRawTag(40); - output.WriteBool(Stationary); - } - if (Automotive != false) { - output.WriteRawTag(48); - output.WriteBool(Automotive); - } - if (Tilting != false) { - output.WriteRawTag(56); - output.WriteBool(Tilting); - } - if (Cycling != false) { - output.WriteRawTag(64); - output.WriteBool(Cycling); - } - if (Status.Length != 0) { - output.WriteRawTag(74); - output.WriteBytes(Status); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (StartTimeMs != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StartTimeMs); - } - if (UnknownStatus != false) { - size += 1 + 1; - } - if (Walking != false) { - size += 1 + 1; - } - if (Running != false) { - size += 1 + 1; - } - if (Stationary != false) { - size += 1 + 1; - } - if (Automotive != false) { - size += 1 + 1; - } - if (Tilting != false) { - size += 1 + 1; - } - if (Cycling != false) { - size += 1 + 1; - } - if (Status.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Status); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(ActivityStatus other) { - if (other == null) { - return; - } - if (other.StartTimeMs != 0UL) { - StartTimeMs = other.StartTimeMs; - } - if (other.UnknownStatus != false) { - UnknownStatus = other.UnknownStatus; - } - if (other.Walking != false) { - Walking = other.Walking; - } - if (other.Running != false) { - Running = other.Running; - } - if (other.Stationary != false) { - Stationary = other.Stationary; - } - if (other.Automotive != false) { - Automotive = other.Automotive; - } - if (other.Tilting != false) { - Tilting = other.Tilting; - } - if (other.Cycling != false) { - Cycling = other.Cycling; - } - if (other.Status.Length != 0) { - Status = other.Status; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 8: { - StartTimeMs = input.ReadUInt64(); - break; - } - case 16: { - UnknownStatus = input.ReadBool(); - break; - } - case 24: { - Walking = input.ReadBool(); - break; - } - case 32: { - Running = input.ReadBool(); - break; - } - case 40: { - Stationary = input.ReadBool(); - break; - } - case 48: { - Automotive = input.ReadBool(); - break; - } - case 56: { - Tilting = input.ReadBool(); - break; - } - case 64: { - Cycling = input.ReadBool(); - break; - } - case 74: { - Status = input.ReadBytes(); - break; - } - } - } - } - - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Networking/Envelopes/Unknown6.cs b/Networking/Envelopes/Unknown6.cs deleted file mode 100644 index f9c7d5a..0000000 --- a/Networking/Envelopes/Unknown6.cs +++ /dev/null @@ -1,326 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: POGOProtos/Networking/Envelopes/Unknown6.proto -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace POGOProtos.Networking.Envelopes { - - /// Holder for reflection information generated from POGOProtos/Networking/Envelopes/Unknown6.proto - public static partial class Unknown6Reflection { - - #region Descriptor - /// File descriptor for POGOProtos/Networking/Envelopes/Unknown6.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static Unknown6Reflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ci5QT0dPUHJvdG9zL05ldHdvcmtpbmcvRW52ZWxvcGVzL1Vua25vd242LnBy", - "b3RvEh9QT0dPUHJvdG9zLk5ldHdvcmtpbmcuRW52ZWxvcGVzIo8BCghVbmtu", - "b3duNhIUCgxyZXF1ZXN0X3R5cGUYASABKAUSRAoIdW5rbm93bjIYAiABKAsy", - "Mi5QT0dPUHJvdG9zLk5ldHdvcmtpbmcuRW52ZWxvcGVzLlVua25vd242LlVu", - "a25vd24yGicKCFVua25vd24yEhsKE2VuY3J5cHRlZF9zaWduYXR1cmUYASAB", - "KAxiBnByb3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.Unknown6), global::POGOProtos.Networking.Envelopes.Unknown6.Parser, new[]{ "RequestType", "Unknown2" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.Unknown6.Types.Unknown2), global::POGOProtos.Networking.Envelopes.Unknown6.Types.Unknown2.Parser, new[]{ "EncryptedSignature" }, null, null, null)}) - })); - } - #endregion - - } - #region Messages - public sealed partial class Unknown6 : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Unknown6()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Envelopes.Unknown6Reflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown6() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown6(Unknown6 other) : this() { - requestType_ = other.requestType_; - Unknown2 = other.unknown2_ != null ? other.Unknown2.Clone() : null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown6 Clone() { - return new Unknown6(this); - } - - /// Field number for the "request_type" field. - public const int RequestTypeFieldNumber = 1; - private int requestType_; - /// - /// 5 for IAPs, 6 is unknown still - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int RequestType { - get { return requestType_; } - set { - requestType_ = value; - } - } - - /// Field number for the "unknown2" field. - public const int Unknown2FieldNumber = 2; - private global::POGOProtos.Networking.Envelopes.Unknown6.Types.Unknown2 unknown2_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Networking.Envelopes.Unknown6.Types.Unknown2 Unknown2 { - get { return unknown2_; } - set { - unknown2_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as Unknown6); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Unknown6 other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (RequestType != other.RequestType) return false; - if (!object.Equals(Unknown2, other.Unknown2)) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (RequestType != 0) hash ^= RequestType.GetHashCode(); - if (unknown2_ != null) hash ^= Unknown2.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (RequestType != 0) { - output.WriteRawTag(8); - output.WriteInt32(RequestType); - } - if (unknown2_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Unknown2); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (RequestType != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(RequestType); - } - if (unknown2_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Unknown2); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Unknown6 other) { - if (other == null) { - return; - } - if (other.RequestType != 0) { - RequestType = other.RequestType; - } - if (other.unknown2_ != null) { - if (unknown2_ == null) { - unknown2_ = new global::POGOProtos.Networking.Envelopes.Unknown6.Types.Unknown2(); - } - Unknown2.MergeFrom(other.Unknown2); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 8: { - RequestType = input.ReadInt32(); - break; - } - case 18: { - if (unknown2_ == null) { - unknown2_ = new global::POGOProtos.Networking.Envelopes.Unknown6.Types.Unknown2(); - } - input.ReadMessage(unknown2_); - break; - } - } - } - } - - #region Nested types - /// Container for nested types declared in the Unknown6 message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static partial class Types { - public sealed partial class Unknown2 : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Unknown2()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Envelopes.Unknown6.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown2() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown2(Unknown2 other) : this() { - encryptedSignature_ = other.encryptedSignature_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown2 Clone() { - return new Unknown2(this); - } - - /// Field number for the "encrypted_signature" field. - public const int EncryptedSignatureFieldNumber = 1; - private pb::ByteString encryptedSignature_ = pb::ByteString.Empty; - /// - /// This are the bytes of POGOProtos/Networking/Envelopes/Signature.proto encrypted. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pb::ByteString EncryptedSignature { - get { return encryptedSignature_; } - set { - encryptedSignature_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as Unknown2); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Unknown2 other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (EncryptedSignature != other.EncryptedSignature) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (EncryptedSignature.Length != 0) hash ^= EncryptedSignature.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (EncryptedSignature.Length != 0) { - output.WriteRawTag(10); - output.WriteBytes(EncryptedSignature); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (EncryptedSignature.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(EncryptedSignature); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Unknown2 other) { - if (other == null) { - return; - } - if (other.EncryptedSignature.Length != 0) { - EncryptedSignature = other.EncryptedSignature; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - EncryptedSignature = input.ReadBytes(); - break; - } - } - } - } - - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Networking/Envelopes/Unknown6Response.cs b/Networking/Envelopes/Unknown6Response.cs deleted file mode 100644 index fd8f0fc..0000000 --- a/Networking/Envelopes/Unknown6Response.cs +++ /dev/null @@ -1,895 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: POGOProtos/Networking/Envelopes/Unknown6Response.proto -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace POGOProtos.Networking.Envelopes { - - /// Holder for reflection information generated from POGOProtos/Networking/Envelopes/Unknown6Response.proto - public static partial class Unknown6ResponseReflection { - - #region Descriptor - /// File descriptor for POGOProtos/Networking/Envelopes/Unknown6Response.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static Unknown6ResponseReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CjZQT0dPUHJvdG9zL05ldHdvcmtpbmcvRW52ZWxvcGVzL1Vua25vd242UmVz", - "cG9uc2UucHJvdG8SH1BPR09Qcm90b3MuTmV0d29ya2luZy5FbnZlbG9wZXMa", - "JVBPR09Qcm90b3MvRGF0YS9QbGF5ZXIvQ3VycmVuY3kucHJvdG8aKFBPR09Q", - "cm90b3MvSW52ZW50b3J5L0l0ZW0vSXRlbURhdGEucHJvdG8ipgUKEFVua25v", - "d242UmVzcG9uc2USFQoNcmVzcG9uc2VfdHlwZRgBIAEoBRJMCgh1bmtub3du", - "MhgCIAEoCzI6LlBPR09Qcm90b3MuTmV0d29ya2luZy5FbnZlbG9wZXMuVW5r", - "bm93bjZSZXNwb25zZS5Vbmtub3duMhqsBAoIVW5rbm93bjISEAoIdW5rbm93", - "bjEYASABKAQSUwoFaXRlbXMYAiADKAsyRC5QT0dPUHJvdG9zLk5ldHdvcmtp", - "bmcuRW52ZWxvcGVzLlVua25vd242UmVzcG9uc2UuVW5rbm93bjIuU3RvcmVJ", - "dGVtEjsKEXBsYXllcl9jdXJyZW5jaWVzGAMgAygLMiAuUE9HT1Byb3Rvcy5E", - "YXRhLlBsYXllci5DdXJyZW5jeRIQCgh1bmtub3duNBgEIAEoCRrpAgoJU3Rv", - "cmVJdGVtEg8KB2l0ZW1faWQYASABKAkSDgoGaXNfaWFwGAIgASgIEjkKD2N1", - "cnJlbmN5X3RvX2J1eRgDIAEoCzIgLlBPR09Qcm90b3MuRGF0YS5QbGF5ZXIu", - "Q3VycmVuY3kSOQoPeWllbGRzX2N1cnJlbmN5GAQgASgLMiAuUE9HT1Byb3Rv", - "cy5EYXRhLlBsYXllci5DdXJyZW5jeRI4Cgt5aWVsZHNfaXRlbRgFIAEoCzIj", - "LlBPR09Qcm90b3MuSW52ZW50b3J5Lkl0ZW0uSXRlbURhdGESVgoEdGFncxgG", - "IAMoCzJILlBPR09Qcm90b3MuTmV0d29ya2luZy5FbnZlbG9wZXMuVW5rbm93", - "bjZSZXNwb25zZS5Vbmtub3duMi5TdG9yZUl0ZW0uVGFnEhAKCHVua25vd243", - "GAcgASgFGiEKA1RhZxILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAliBnBy", - "b3RvMw==")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::POGOProtos.Data.Player.CurrencyReflection.Descriptor, global::POGOProtos.Inventory.Item.ItemDataReflection.Descriptor, }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.Unknown6Response), global::POGOProtos.Networking.Envelopes.Unknown6Response.Parser, new[]{ "ResponseType", "Unknown2" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2), global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2.Parser, new[]{ "Unknown1", "Items", "PlayerCurrencies", "Unknown4" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2.Types.StoreItem), global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2.Types.StoreItem.Parser, new[]{ "ItemId", "IsIap", "CurrencyToBuy", "YieldsCurrency", "YieldsItem", "Tags", "Unknown7" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2.Types.StoreItem.Types.Tag), global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2.Types.StoreItem.Types.Tag.Parser, new[]{ "Key", "Value" }, null, null, null)})})}) - })); - } - #endregion - - } - #region Messages - public sealed partial class Unknown6Response : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Unknown6Response()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Envelopes.Unknown6ResponseReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown6Response() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown6Response(Unknown6Response other) : this() { - responseType_ = other.responseType_; - Unknown2 = other.unknown2_ != null ? other.Unknown2.Clone() : null; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown6Response Clone() { - return new Unknown6Response(this); - } - - /// Field number for the "response_type" field. - public const int ResponseTypeFieldNumber = 1; - private int responseType_; - /// - /// Still don't know what 6 is, but 5 lists items available via IAPs. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int ResponseType { - get { return responseType_; } - set { - responseType_ = value; - } - } - - /// Field number for the "unknown2" field. - public const int Unknown2FieldNumber = 2; - private global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2 unknown2_; - /// - /// Response data - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2 Unknown2 { - get { return unknown2_; } - set { - unknown2_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as Unknown6Response); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Unknown6Response other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ResponseType != other.ResponseType) return false; - if (!object.Equals(Unknown2, other.Unknown2)) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (ResponseType != 0) hash ^= ResponseType.GetHashCode(); - if (unknown2_ != null) hash ^= Unknown2.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (ResponseType != 0) { - output.WriteRawTag(8); - output.WriteInt32(ResponseType); - } - if (unknown2_ != null) { - output.WriteRawTag(18); - output.WriteMessage(Unknown2); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (ResponseType != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResponseType); - } - if (unknown2_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Unknown2); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Unknown6Response other) { - if (other == null) { - return; - } - if (other.ResponseType != 0) { - ResponseType = other.ResponseType; - } - if (other.unknown2_ != null) { - if (unknown2_ == null) { - unknown2_ = new global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2(); - } - Unknown2.MergeFrom(other.Unknown2); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 8: { - ResponseType = input.ReadInt32(); - break; - } - case 18: { - if (unknown2_ == null) { - unknown2_ = new global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2(); - } - input.ReadMessage(unknown2_); - break; - } - } - } - } - - #region Nested types - /// Container for nested types declared in the Unknown6Response message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static partial class Types { - public sealed partial class Unknown2 : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Unknown2()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Envelopes.Unknown6Response.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown2() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown2(Unknown2 other) : this() { - unknown1_ = other.unknown1_; - items_ = other.items_.Clone(); - playerCurrencies_ = other.playerCurrencies_.Clone(); - unknown4_ = other.unknown4_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown2 Clone() { - return new Unknown2(this); - } - - /// Field number for the "unknown1" field. - public const int Unknown1FieldNumber = 1; - private ulong unknown1_; - /// - /// Maybe status? It's always 1 (success), so it's probably that. - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong Unknown1 { - get { return unknown1_; } - set { - unknown1_ = value; - } - } - - /// Field number for the "items" field. - public const int ItemsFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_items_codec - = pb::FieldCodec.ForMessage(18, global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2.Types.StoreItem.Parser); - private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); - /// - /// Items to show in the shop - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Items { - get { return items_; } - } - - /// Field number for the "player_currencies" field. - public const int PlayerCurrenciesFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_playerCurrencies_codec - = pb::FieldCodec.ForMessage(26, global::POGOProtos.Data.Player.Currency.Parser); - private readonly pbc::RepeatedField playerCurrencies_ = new pbc::RepeatedField(); - /// - /// currencies that player has at the moment - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField PlayerCurrencies { - get { return playerCurrencies_; } - } - - /// Field number for the "unknown4" field. - public const int Unknown4FieldNumber = 4; - private string unknown4_ = ""; - /// - /// Some base64 encoded stuff... - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Unknown4 { - get { return unknown4_; } - set { - unknown4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as Unknown2); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Unknown2 other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Unknown1 != other.Unknown1) return false; - if(!items_.Equals(other.items_)) return false; - if(!playerCurrencies_.Equals(other.playerCurrencies_)) return false; - if (Unknown4 != other.Unknown4) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (Unknown1 != 0UL) hash ^= Unknown1.GetHashCode(); - hash ^= items_.GetHashCode(); - hash ^= playerCurrencies_.GetHashCode(); - if (Unknown4.Length != 0) hash ^= Unknown4.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (Unknown1 != 0UL) { - output.WriteRawTag(8); - output.WriteUInt64(Unknown1); - } - items_.WriteTo(output, _repeated_items_codec); - playerCurrencies_.WriteTo(output, _repeated_playerCurrencies_codec); - if (Unknown4.Length != 0) { - output.WriteRawTag(34); - output.WriteString(Unknown4); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Unknown1 != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Unknown1); - } - size += items_.CalculateSize(_repeated_items_codec); - size += playerCurrencies_.CalculateSize(_repeated_playerCurrencies_codec); - if (Unknown4.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Unknown4); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Unknown2 other) { - if (other == null) { - return; - } - if (other.Unknown1 != 0UL) { - Unknown1 = other.Unknown1; - } - items_.Add(other.items_); - playerCurrencies_.Add(other.playerCurrencies_); - if (other.Unknown4.Length != 0) { - Unknown4 = other.Unknown4; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 8: { - Unknown1 = input.ReadUInt64(); - break; - } - case 18: { - items_.AddEntriesFrom(input, _repeated_items_codec); - break; - } - case 26: { - playerCurrencies_.AddEntriesFrom(input, _repeated_playerCurrencies_codec); - break; - } - case 34: { - Unknown4 = input.ReadString(); - break; - } - } - } - } - - #region Nested types - /// Container for nested types declared in the Unknown2 message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static partial class Types { - public sealed partial class StoreItem : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StoreItem()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public StoreItem() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public StoreItem(StoreItem other) : this() { - itemId_ = other.itemId_; - isIap_ = other.isIap_; - CurrencyToBuy = other.currencyToBuy_ != null ? other.CurrencyToBuy.Clone() : null; - YieldsCurrency = other.yieldsCurrency_ != null ? other.YieldsCurrency.Clone() : null; - YieldsItem = other.yieldsItem_ != null ? other.YieldsItem.Clone() : null; - tags_ = other.tags_.Clone(); - unknown7_ = other.unknown7_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public StoreItem Clone() { - return new StoreItem(this); - } - - /// Field number for the "item_id" field. - public const int ItemIdFieldNumber = 1; - private string itemId_ = ""; - /// - /// Internal ID (probably for Google Play/App Store) example: "pgorelease.incenseordinary.1" - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string ItemId { - get { return itemId_; } - set { - itemId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "is_iap" field. - public const int IsIapFieldNumber = 2; - private bool isIap_; - /// - /// If true, this item is bought with real currency (USD, etc.) through the Play/App Store instead of Pokecoins - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool IsIap { - get { return isIap_; } - set { - isIap_ = value; - } - } - - /// Field number for the "currency_to_buy" field. - public const int CurrencyToBuyFieldNumber = 3; - private global::POGOProtos.Data.Player.Currency currencyToBuy_; - /// - /// This defines how much the item costs (with the exception of items that cost real money like Pokecoins, that's defined in the respective store) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Data.Player.Currency CurrencyToBuy { - get { return currencyToBuy_; } - set { - currencyToBuy_ = value; - } - } - - /// Field number for the "yields_currency" field. - public const int YieldsCurrencyFieldNumber = 4; - private global::POGOProtos.Data.Player.Currency yieldsCurrency_; - /// - /// When bought, this IAP will yield this much currency - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Data.Player.Currency YieldsCurrency { - get { return yieldsCurrency_; } - set { - yieldsCurrency_ = value; - } - } - - /// Field number for the "yields_item" field. - public const int YieldsItemFieldNumber = 5; - private global::POGOProtos.Inventory.Item.ItemData yieldsItem_; - /// - /// The item and count of such item that this IAP will yield - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Inventory.Item.ItemData YieldsItem { - get { return yieldsItem_; } - set { - yieldsItem_ = value; - } - } - - /// Field number for the "tags" field. - public const int TagsFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_tags_codec - = pb::FieldCodec.ForMessage(50, global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2.Types.StoreItem.Types.Tag.Parser); - private readonly pbc::RepeatedField tags_ = new pbc::RepeatedField(); - /// - /// Stuff like SORT:12, CATEGORY:ITEMS - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Tags { - get { return tags_; } - } - - /// Field number for the "unknown7" field. - public const int Unknown7FieldNumber = 7; - private int unknown7_; - /// - /// Possibly something to toggle visibility in the store/purchasibility? - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int Unknown7 { - get { return unknown7_; } - set { - unknown7_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as StoreItem); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(StoreItem other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (ItemId != other.ItemId) return false; - if (IsIap != other.IsIap) return false; - if (!object.Equals(CurrencyToBuy, other.CurrencyToBuy)) return false; - if (!object.Equals(YieldsCurrency, other.YieldsCurrency)) return false; - if (!object.Equals(YieldsItem, other.YieldsItem)) return false; - if(!tags_.Equals(other.tags_)) return false; - if (Unknown7 != other.Unknown7) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (ItemId.Length != 0) hash ^= ItemId.GetHashCode(); - if (IsIap != false) hash ^= IsIap.GetHashCode(); - if (currencyToBuy_ != null) hash ^= CurrencyToBuy.GetHashCode(); - if (yieldsCurrency_ != null) hash ^= YieldsCurrency.GetHashCode(); - if (yieldsItem_ != null) hash ^= YieldsItem.GetHashCode(); - hash ^= tags_.GetHashCode(); - if (Unknown7 != 0) hash ^= Unknown7.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (ItemId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(ItemId); - } - if (IsIap != false) { - output.WriteRawTag(16); - output.WriteBool(IsIap); - } - if (currencyToBuy_ != null) { - output.WriteRawTag(26); - output.WriteMessage(CurrencyToBuy); - } - if (yieldsCurrency_ != null) { - output.WriteRawTag(34); - output.WriteMessage(YieldsCurrency); - } - if (yieldsItem_ != null) { - output.WriteRawTag(42); - output.WriteMessage(YieldsItem); - } - tags_.WriteTo(output, _repeated_tags_codec); - if (Unknown7 != 0) { - output.WriteRawTag(56); - output.WriteInt32(Unknown7); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (ItemId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ItemId); - } - if (IsIap != false) { - size += 1 + 1; - } - if (currencyToBuy_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrencyToBuy); - } - if (yieldsCurrency_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(YieldsCurrency); - } - if (yieldsItem_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(YieldsItem); - } - size += tags_.CalculateSize(_repeated_tags_codec); - if (Unknown7 != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Unknown7); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(StoreItem other) { - if (other == null) { - return; - } - if (other.ItemId.Length != 0) { - ItemId = other.ItemId; - } - if (other.IsIap != false) { - IsIap = other.IsIap; - } - if (other.currencyToBuy_ != null) { - if (currencyToBuy_ == null) { - currencyToBuy_ = new global::POGOProtos.Data.Player.Currency(); - } - CurrencyToBuy.MergeFrom(other.CurrencyToBuy); - } - if (other.yieldsCurrency_ != null) { - if (yieldsCurrency_ == null) { - yieldsCurrency_ = new global::POGOProtos.Data.Player.Currency(); - } - YieldsCurrency.MergeFrom(other.YieldsCurrency); - } - if (other.yieldsItem_ != null) { - if (yieldsItem_ == null) { - yieldsItem_ = new global::POGOProtos.Inventory.Item.ItemData(); - } - YieldsItem.MergeFrom(other.YieldsItem); - } - tags_.Add(other.tags_); - if (other.Unknown7 != 0) { - Unknown7 = other.Unknown7; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - ItemId = input.ReadString(); - break; - } - case 16: { - IsIap = input.ReadBool(); - break; - } - case 26: { - if (currencyToBuy_ == null) { - currencyToBuy_ = new global::POGOProtos.Data.Player.Currency(); - } - input.ReadMessage(currencyToBuy_); - break; - } - case 34: { - if (yieldsCurrency_ == null) { - yieldsCurrency_ = new global::POGOProtos.Data.Player.Currency(); - } - input.ReadMessage(yieldsCurrency_); - break; - } - case 42: { - if (yieldsItem_ == null) { - yieldsItem_ = new global::POGOProtos.Inventory.Item.ItemData(); - } - input.ReadMessage(yieldsItem_); - break; - } - case 50: { - tags_.AddEntriesFrom(input, _repeated_tags_codec); - break; - } - case 56: { - Unknown7 = input.ReadInt32(); - break; - } - } - } - } - - #region Nested types - /// Container for nested types declared in the StoreItem message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static partial class Types { - public sealed partial class Tag : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Tag()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Envelopes.Unknown6Response.Types.Unknown2.Types.StoreItem.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Tag() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Tag(Tag other) : this() { - key_ = other.key_; - value_ = other.value_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Tag Clone() { - return new Tag(this); - } - - /// Field number for the "key" field. - public const int KeyFieldNumber = 1; - private string key_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Key { - get { return key_; } - set { - key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "value" field. - public const int ValueFieldNumber = 2; - private string value_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Value { - get { return value_; } - set { - value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as Tag); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Tag other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Key != other.Key) return false; - if (Value != other.Value) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (Key.Length != 0) hash ^= Key.GetHashCode(); - if (Value.Length != 0) hash ^= Value.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (Key.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Key); - } - if (Value.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Value); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Key.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); - } - if (Value.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Tag other) { - if (other == null) { - return; - } - if (other.Key.Length != 0) { - Key = other.Key; - } - if (other.Value.Length != 0) { - Value = other.Value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - Key = input.ReadString(); - break; - } - case 18: { - Value = input.ReadString(); - break; - } - } - } - } - - } - - } - #endregion - - } - - } - #endregion - - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Networking/Platform/PlatformRequestType.cs b/Networking/Platform/PlatformRequestType.cs new file mode 100644 index 0000000..d95d226 --- /dev/null +++ b/Networking/Platform/PlatformRequestType.cs @@ -0,0 +1,52 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: POGOProtos/Networking/Platform/PlatformRequestType.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace POGOProtos.Networking.Platform { + + /// Holder for reflection information generated from POGOProtos/Networking/Platform/PlatformRequestType.proto + public static partial class PlatformRequestTypeReflection { + + #region Descriptor + /// File descriptor for POGOProtos/Networking/Platform/PlatformRequestType.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static PlatformRequestTypeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjhQT0dPUHJvdG9zL05ldHdvcmtpbmcvUGxhdGZvcm0vUGxhdGZvcm1SZXF1", + "ZXN0VHlwZS5wcm90bxIeUE9HT1Byb3Rvcy5OZXR3b3JraW5nLlBsYXRmb3Jt", + "KpoBChNQbGF0Zm9ybVJlcXVlc3RUeXBlEhAKDE1FVEhPRF9VTlNFVBAAEhYK", + "EkJVWV9JVEVNX1BPS0VDT0lOUxACEhQKEEJVWV9JVEVNX0FORFJPSUQQAxIQ", + "CgxCVVlfSVRFTV9JT1MQBBITCg9HRVRfU1RPUkVfSVRFTVMQBRIcChhTRU5E", + "X0VOQ1JZUFRFRF9TSUdOQVRVUkUQBmIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::POGOProtos.Networking.Platform.PlatformRequestType), }, null)); + } + #endregion + + } + #region Enums + public enum PlatformRequestType { + [pbr::OriginalName("METHOD_UNSET")] MethodUnset = 0, + [pbr::OriginalName("BUY_ITEM_POKECOINS")] BuyItemPokecoins = 2, + [pbr::OriginalName("BUY_ITEM_ANDROID")] BuyItemAndroid = 3, + [pbr::OriginalName("BUY_ITEM_IOS")] BuyItemIos = 4, + [pbr::OriginalName("GET_STORE_ITEMS")] GetStoreItems = 5, + [pbr::OriginalName("SEND_ENCRYPTED_SIGNATURE")] SendEncryptedSignature = 6, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Networking/Platform/Requests/BuyItemAndroidRequest.cs b/Networking/Platform/Requests/BuyItemAndroidRequest.cs new file mode 100644 index 0000000..ea829f7 --- /dev/null +++ b/Networking/Platform/Requests/BuyItemAndroidRequest.cs @@ -0,0 +1,163 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: POGOProtos/Networking/Platform/Requests/BuyItemAndroidRequest.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace POGOProtos.Networking.Platform.Requests { + + /// Holder for reflection information generated from POGOProtos/Networking/Platform/Requests/BuyItemAndroidRequest.proto + public static partial class BuyItemAndroidRequestReflection { + + #region Descriptor + /// File descriptor for POGOProtos/Networking/Platform/Requests/BuyItemAndroidRequest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BuyItemAndroidRequestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CkNQT0dPUHJvdG9zL05ldHdvcmtpbmcvUGxhdGZvcm0vUmVxdWVzdHMvQnV5", + "SXRlbUFuZHJvaWRSZXF1ZXN0LnByb3RvEidQT0dPUHJvdG9zLk5ldHdvcmtp", + "bmcuUGxhdGZvcm0uUmVxdWVzdHMiMAoVQnV5SXRlbUFuZHJvaWRSZXF1ZXN0", + "EhcKD2J1eV9pdGVtX2ludGVudBgBIAEoCWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Platform.Requests.BuyItemAndroidRequest), global::POGOProtos.Networking.Platform.Requests.BuyItemAndroidRequest.Parser, new[]{ "BuyItemIntent" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class BuyItemAndroidRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BuyItemAndroidRequest()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::POGOProtos.Networking.Platform.Requests.BuyItemAndroidRequestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BuyItemAndroidRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BuyItemAndroidRequest(BuyItemAndroidRequest other) : this() { + buyItemIntent_ = other.buyItemIntent_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BuyItemAndroidRequest Clone() { + return new BuyItemAndroidRequest(this); + } + + /// Field number for the "buy_item_intent" field. + public const int BuyItemIntentFieldNumber = 1; + private string buyItemIntent_ = ""; + /// + /// see https://developer.android.com/google/play/billing/billing_reference.html table 4 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string BuyItemIntent { + get { return buyItemIntent_; } + set { + buyItemIntent_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as BuyItemAndroidRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(BuyItemAndroidRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BuyItemIntent != other.BuyItemIntent) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (BuyItemIntent.Length != 0) hash ^= BuyItemIntent.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (BuyItemIntent.Length != 0) { + output.WriteRawTag(10); + output.WriteString(BuyItemIntent); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (BuyItemIntent.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BuyItemIntent); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(BuyItemAndroidRequest other) { + if (other == null) { + return; + } + if (other.BuyItemIntent.Length != 0) { + BuyItemIntent = other.BuyItemIntent; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 10: { + BuyItemIntent = input.ReadString(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Networking/Platform/Requests/BuyItemPokeCoinsRequest.cs b/Networking/Platform/Requests/BuyItemPokeCoinsRequest.cs new file mode 100644 index 0000000..4c8c7a5 --- /dev/null +++ b/Networking/Platform/Requests/BuyItemPokeCoinsRequest.cs @@ -0,0 +1,160 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: POGOProtos/Networking/Platform/Requests/BuyItemPokeCoinsRequest.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace POGOProtos.Networking.Platform.Requests { + + /// Holder for reflection information generated from POGOProtos/Networking/Platform/Requests/BuyItemPokeCoinsRequest.proto + public static partial class BuyItemPokeCoinsRequestReflection { + + #region Descriptor + /// File descriptor for POGOProtos/Networking/Platform/Requests/BuyItemPokeCoinsRequest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BuyItemPokeCoinsRequestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CkVQT0dPUHJvdG9zL05ldHdvcmtpbmcvUGxhdGZvcm0vUmVxdWVzdHMvQnV5", + "SXRlbVBva2VDb2luc1JlcXVlc3QucHJvdG8SJ1BPR09Qcm90b3MuTmV0d29y", + "a2luZy5QbGF0Zm9ybS5SZXF1ZXN0cyIqChdCdXlJdGVtUG9rZUNvaW5zUmVx", + "dWVzdBIPCgdpdGVtX2lkGAEgASgJYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Platform.Requests.BuyItemPokeCoinsRequest), global::POGOProtos.Networking.Platform.Requests.BuyItemPokeCoinsRequest.Parser, new[]{ "ItemId" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class BuyItemPokeCoinsRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BuyItemPokeCoinsRequest()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::POGOProtos.Networking.Platform.Requests.BuyItemPokeCoinsRequestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BuyItemPokeCoinsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BuyItemPokeCoinsRequest(BuyItemPokeCoinsRequest other) : this() { + itemId_ = other.itemId_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BuyItemPokeCoinsRequest Clone() { + return new BuyItemPokeCoinsRequest(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private string itemId_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ItemId { + get { return itemId_; } + set { + itemId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as BuyItemPokeCoinsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(BuyItemPokeCoinsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (ItemId.Length != 0) hash ^= ItemId.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (ItemId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ItemId); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (ItemId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ItemId); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(BuyItemPokeCoinsRequest other) { + if (other == null) { + return; + } + if (other.ItemId.Length != 0) { + ItemId = other.ItemId; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 10: { + ItemId = input.ReadString(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Networking/Platform/Requests/SendEncryptedSignatureRequest.cs b/Networking/Platform/Requests/SendEncryptedSignatureRequest.cs new file mode 100644 index 0000000..12d52e8 --- /dev/null +++ b/Networking/Platform/Requests/SendEncryptedSignatureRequest.cs @@ -0,0 +1,161 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: POGOProtos/Networking/Platform/Requests/SendEncryptedSignatureRequest.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace POGOProtos.Networking.Platform.Requests { + + /// Holder for reflection information generated from POGOProtos/Networking/Platform/Requests/SendEncryptedSignatureRequest.proto + public static partial class SendEncryptedSignatureRequestReflection { + + #region Descriptor + /// File descriptor for POGOProtos/Networking/Platform/Requests/SendEncryptedSignatureRequest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SendEncryptedSignatureRequestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CktQT0dPUHJvdG9zL05ldHdvcmtpbmcvUGxhdGZvcm0vUmVxdWVzdHMvU2Vu", + "ZEVuY3J5cHRlZFNpZ25hdHVyZVJlcXVlc3QucHJvdG8SJ1BPR09Qcm90b3Mu", + "TmV0d29ya2luZy5QbGF0Zm9ybS5SZXF1ZXN0cyI8Ch1TZW5kRW5jcnlwdGVk", + "U2lnbmF0dXJlUmVxdWVzdBIbChNlbmNyeXB0ZWRfc2lnbmF0dXJlGAEgASgM", + "YgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Platform.Requests.SendEncryptedSignatureRequest), global::POGOProtos.Networking.Platform.Requests.SendEncryptedSignatureRequest.Parser, new[]{ "EncryptedSignature" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class SendEncryptedSignatureRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendEncryptedSignatureRequest()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::POGOProtos.Networking.Platform.Requests.SendEncryptedSignatureRequestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SendEncryptedSignatureRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SendEncryptedSignatureRequest(SendEncryptedSignatureRequest other) : this() { + encryptedSignature_ = other.encryptedSignature_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SendEncryptedSignatureRequest Clone() { + return new SendEncryptedSignatureRequest(this); + } + + /// Field number for the "encrypted_signature" field. + public const int EncryptedSignatureFieldNumber = 1; + private pb::ByteString encryptedSignature_ = pb::ByteString.Empty; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pb::ByteString EncryptedSignature { + get { return encryptedSignature_; } + set { + encryptedSignature_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SendEncryptedSignatureRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SendEncryptedSignatureRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (EncryptedSignature != other.EncryptedSignature) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (EncryptedSignature.Length != 0) hash ^= EncryptedSignature.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (EncryptedSignature.Length != 0) { + output.WriteRawTag(10); + output.WriteBytes(EncryptedSignature); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (EncryptedSignature.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(EncryptedSignature); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SendEncryptedSignatureRequest other) { + if (other == null) { + return; + } + if (other.EncryptedSignature.Length != 0) { + EncryptedSignature = other.EncryptedSignature; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 10: { + EncryptedSignature = input.ReadBytes(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Networking/Platform/Responses/BuyItemAndroidResponse.cs b/Networking/Platform/Responses/BuyItemAndroidResponse.cs new file mode 100644 index 0000000..c85d36b --- /dev/null +++ b/Networking/Platform/Responses/BuyItemAndroidResponse.cs @@ -0,0 +1,209 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: POGOProtos/Networking/Platform/Responses/BuyItemAndroidResponse.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace POGOProtos.Networking.Platform.Responses { + + /// Holder for reflection information generated from POGOProtos/Networking/Platform/Responses/BuyItemAndroidResponse.proto + public static partial class BuyItemAndroidResponseReflection { + + #region Descriptor + /// File descriptor for POGOProtos/Networking/Platform/Responses/BuyItemAndroidResponse.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BuyItemAndroidResponseReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CkVQT0dPUHJvdG9zL05ldHdvcmtpbmcvUGxhdGZvcm0vUmVzcG9uc2VzL0J1", + "eUl0ZW1BbmRyb2lkUmVzcG9uc2UucHJvdG8SKFBPR09Qcm90b3MuTmV0d29y", + "a2luZy5QbGF0Zm9ybS5SZXNwb25zZXMirQEKFkJ1eUl0ZW1BbmRyb2lkUmVz", + "cG9uc2USVwoGcmVzdWx0GAEgASgOMkcuUE9HT1Byb3Rvcy5OZXR3b3JraW5n", + "LlBsYXRmb3JtLlJlc3BvbnNlcy5CdXlJdGVtQW5kcm9pZFJlc3BvbnNlLlN0", + "YXR1cxIWCg5wdXJjaGFzZV90b2tlbhgCIAEoCSIiCgZTdGF0dXMSCwoHVU5L", + "Tk9XThAAEgsKB1NVQ0NFU1MQAWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Platform.Responses.BuyItemAndroidResponse), global::POGOProtos.Networking.Platform.Responses.BuyItemAndroidResponse.Parser, new[]{ "Result", "PurchaseToken" }, null, new[]{ typeof(global::POGOProtos.Networking.Platform.Responses.BuyItemAndroidResponse.Types.Status) }, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class BuyItemAndroidResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BuyItemAndroidResponse()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::POGOProtos.Networking.Platform.Responses.BuyItemAndroidResponseReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BuyItemAndroidResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BuyItemAndroidResponse(BuyItemAndroidResponse other) : this() { + result_ = other.result_; + purchaseToken_ = other.purchaseToken_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BuyItemAndroidResponse Clone() { + return new BuyItemAndroidResponse(this); + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 1; + private global::POGOProtos.Networking.Platform.Responses.BuyItemAndroidResponse.Types.Status result_ = 0; + /// + /// result + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::POGOProtos.Networking.Platform.Responses.BuyItemAndroidResponse.Types.Status Result { + get { return result_; } + set { + result_ = value; + } + } + + /// Field number for the "purchase_token" field. + public const int PurchaseTokenFieldNumber = 2; + private string purchaseToken_ = ""; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string PurchaseToken { + get { return purchaseToken_; } + set { + purchaseToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as BuyItemAndroidResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(BuyItemAndroidResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Result != other.Result) return false; + if (PurchaseToken != other.PurchaseToken) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Result != 0) hash ^= Result.GetHashCode(); + if (PurchaseToken.Length != 0) hash ^= PurchaseToken.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Result != 0) { + output.WriteRawTag(8); + output.WriteEnum((int) Result); + } + if (PurchaseToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PurchaseToken); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Result != 0) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Result); + } + if (PurchaseToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PurchaseToken); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(BuyItemAndroidResponse other) { + if (other == null) { + return; + } + if (other.Result != 0) { + Result = other.Result; + } + if (other.PurchaseToken.Length != 0) { + PurchaseToken = other.PurchaseToken; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 8: { + result_ = (global::POGOProtos.Networking.Platform.Responses.BuyItemAndroidResponse.Types.Status) input.ReadEnum(); + break; + } + case 18: { + PurchaseToken = input.ReadString(); + break; + } + } + } + } + + #region Nested types + /// Container for nested types declared in the BuyItemAndroidResponse message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static partial class Types { + /// + /// THESE ARE SOMEWHAT SPECULATED, failed may be 2 + /// + public enum Status { + [pbr::OriginalName("UNKNOWN")] Unknown = 0, + [pbr::OriginalName("SUCCESS")] Success = 1, + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Networking/Platform/Responses/BuyItemPokeCoinsResponse.cs b/Networking/Platform/Responses/BuyItemPokeCoinsResponse.cs new file mode 100644 index 0000000..e96cefa --- /dev/null +++ b/Networking/Platform/Responses/BuyItemPokeCoinsResponse.cs @@ -0,0 +1,182 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: POGOProtos/Networking/Platform/Responses/BuyItemPokeCoinsResponse.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace POGOProtos.Networking.Platform.Responses { + + /// Holder for reflection information generated from POGOProtos/Networking/Platform/Responses/BuyItemPokeCoinsResponse.proto + public static partial class BuyItemPokeCoinsResponseReflection { + + #region Descriptor + /// File descriptor for POGOProtos/Networking/Platform/Responses/BuyItemPokeCoinsResponse.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static BuyItemPokeCoinsResponseReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CkdQT0dPUHJvdG9zL05ldHdvcmtpbmcvUGxhdGZvcm0vUmVzcG9uc2VzL0J1", + "eUl0ZW1Qb2tlQ29pbnNSZXNwb25zZS5wcm90bxIoUE9HT1Byb3Rvcy5OZXR3", + "b3JraW5nLlBsYXRmb3JtLlJlc3BvbnNlcyKzAQoYQnV5SXRlbVBva2VDb2lu", + "c1Jlc3BvbnNlElkKBnJlc3VsdBgBIAEoDjJJLlBPR09Qcm90b3MuTmV0d29y", + "a2luZy5QbGF0Zm9ybS5SZXNwb25zZXMuQnV5SXRlbVBva2VDb2luc1Jlc3Bv", + "bnNlLlN0YXR1cyI8CgZTdGF0dXMSCwoHVU5LTk9XThAAEgsKB1NVQ0NFU1MQ", + "ARIYChROT1RfRU5PVUdIX1BPS0VDT0lOUxADYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Platform.Responses.BuyItemPokeCoinsResponse), global::POGOProtos.Networking.Platform.Responses.BuyItemPokeCoinsResponse.Parser, new[]{ "Result" }, null, new[]{ typeof(global::POGOProtos.Networking.Platform.Responses.BuyItemPokeCoinsResponse.Types.Status) }, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class BuyItemPokeCoinsResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BuyItemPokeCoinsResponse()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::POGOProtos.Networking.Platform.Responses.BuyItemPokeCoinsResponseReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BuyItemPokeCoinsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BuyItemPokeCoinsResponse(BuyItemPokeCoinsResponse other) : this() { + result_ = other.result_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public BuyItemPokeCoinsResponse Clone() { + return new BuyItemPokeCoinsResponse(this); + } + + /// Field number for the "result" field. + public const int ResultFieldNumber = 1; + private global::POGOProtos.Networking.Platform.Responses.BuyItemPokeCoinsResponse.Types.Status result_ = 0; + /// + /// result + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::POGOProtos.Networking.Platform.Responses.BuyItemPokeCoinsResponse.Types.Status Result { + get { return result_; } + set { + result_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as BuyItemPokeCoinsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(BuyItemPokeCoinsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Result != other.Result) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Result != 0) hash ^= Result.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Result != 0) { + output.WriteRawTag(8); + output.WriteEnum((int) Result); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Result != 0) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Result); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(BuyItemPokeCoinsResponse other) { + if (other == null) { + return; + } + if (other.Result != 0) { + Result = other.Result; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 8: { + result_ = (global::POGOProtos.Networking.Platform.Responses.BuyItemPokeCoinsResponse.Types.Status) input.ReadEnum(); + break; + } + } + } + } + + #region Nested types + /// Container for nested types declared in the BuyItemPokeCoinsResponse message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static partial class Types { + /// + /// THESE ARE SOMEWHAT SPECULATED, should be a NOT ENOUGH ROOM status too for bag being full somewhere. + /// + public enum Status { + [pbr::OriginalName("UNKNOWN")] Unknown = 0, + [pbr::OriginalName("SUCCESS")] Success = 1, + [pbr::OriginalName("NOT_ENOUGH_POKECOINS")] NotEnoughPokecoins = 3, + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Networking/Platform/Responses/GetStoreItemsResponse.cs b/Networking/Platform/Responses/GetStoreItemsResponse.cs new file mode 100644 index 0000000..adf1439 --- /dev/null +++ b/Networking/Platform/Responses/GetStoreItemsResponse.cs @@ -0,0 +1,584 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: POGOProtos/Networking/Platform/Responses/GetStoreItemsResponse.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace POGOProtos.Networking.Envelopes { + + /// Holder for reflection information generated from POGOProtos/Networking/Platform/Responses/GetStoreItemsResponse.proto + public static partial class GetStoreItemsResponseReflection { + + #region Descriptor + /// File descriptor for POGOProtos/Networking/Platform/Responses/GetStoreItemsResponse.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static GetStoreItemsResponseReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CkRQT0dPUHJvdG9zL05ldHdvcmtpbmcvUGxhdGZvcm0vUmVzcG9uc2VzL0dl", + "dFN0b3JlSXRlbXNSZXNwb25zZS5wcm90bxIfUE9HT1Byb3Rvcy5OZXR3b3Jr", + "aW5nLkVudmVsb3BlcxolUE9HT1Byb3Rvcy9EYXRhL1BsYXllci9DdXJyZW5j", + "eS5wcm90bxooUE9HT1Byb3Rvcy9JbnZlbnRvcnkvSXRlbS9JdGVtRGF0YS5w", + "cm90byKhBQoVR2V0U3RvcmVJdGVtc1Jlc3BvbnNlEk0KBnN0YXR1cxgBIAEo", + "DjI9LlBPR09Qcm90b3MuTmV0d29ya2luZy5FbnZlbG9wZXMuR2V0U3RvcmVJ", + "dGVtc1Jlc3BvbnNlLlN0YXR1cxJPCgVpdGVtcxgCIAMoCzJALlBPR09Qcm90", + "b3MuTmV0d29ya2luZy5FbnZlbG9wZXMuR2V0U3RvcmVJdGVtc1Jlc3BvbnNl", + "LlN0b3JlSXRlbRI7ChFwbGF5ZXJfY3VycmVuY2llcxgDIAMoCzIgLlBPR09Q", + "cm90b3MuRGF0YS5QbGF5ZXIuQ3VycmVuY3kSEAoIdW5rbm93bjQYBCABKAka", + "9QIKCVN0b3JlSXRlbRIPCgdpdGVtX2lkGAEgASgJEg4KBmlzX2lhcBgCIAEo", + "CBI5Cg9jdXJyZW5jeV90b19idXkYAyABKAsyIC5QT0dPUHJvdG9zLkRhdGEu", + "UGxheWVyLkN1cnJlbmN5EjkKD3lpZWxkc19jdXJyZW5jeRgEIAEoCzIgLlBP", + "R09Qcm90b3MuRGF0YS5QbGF5ZXIuQ3VycmVuY3kSOAoLeWllbGRzX2l0ZW0Y", + "BSABKAsyIy5QT0dPUHJvdG9zLkludmVudG9yeS5JdGVtLkl0ZW1EYXRhElgK", + "BHRhZ3MYBiADKAsySi5QT0dPUHJvdG9zLk5ldHdvcmtpbmcuRW52ZWxvcGVz", + "LkdldFN0b3JlSXRlbXNSZXNwb25zZS5TdG9yZUl0ZW0uVGFnc0VudHJ5EhAK", + "CHVua25vd243GAcgASgFGisKCVRhZ3NFbnRyeRILCgNrZXkYASABKAkSDQoF", + "dmFsdWUYAiABKAk6AjgBIiEKBlN0YXR1cxINCglVTkRFRklORUQQABIICgRP", + "S0FZEAFiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::POGOProtos.Data.Player.CurrencyReflection.Descriptor, global::POGOProtos.Inventory.Item.ItemDataReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.GetStoreItemsResponse), global::POGOProtos.Networking.Envelopes.GetStoreItemsResponse.Parser, new[]{ "Status", "Items", "PlayerCurrencies", "Unknown4" }, null, new[]{ typeof(global::POGOProtos.Networking.Envelopes.GetStoreItemsResponse.Types.Status) }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Envelopes.GetStoreItemsResponse.Types.StoreItem), global::POGOProtos.Networking.Envelopes.GetStoreItemsResponse.Types.StoreItem.Parser, new[]{ "ItemId", "IsIap", "CurrencyToBuy", "YieldsCurrency", "YieldsItem", "Tags", "Unknown7" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, })}) + })); + } + #endregion + + } + #region Messages + public sealed partial class GetStoreItemsResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetStoreItemsResponse()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::POGOProtos.Networking.Envelopes.GetStoreItemsResponseReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStoreItemsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStoreItemsResponse(GetStoreItemsResponse other) : this() { + status_ = other.status_; + items_ = other.items_.Clone(); + playerCurrencies_ = other.playerCurrencies_.Clone(); + unknown4_ = other.unknown4_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public GetStoreItemsResponse Clone() { + return new GetStoreItemsResponse(this); + } + + /// Field number for the "status" field. + public const int StatusFieldNumber = 1; + private global::POGOProtos.Networking.Envelopes.GetStoreItemsResponse.Types.Status status_ = 0; + /// + /// unconfirmed + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::POGOProtos.Networking.Envelopes.GetStoreItemsResponse.Types.Status Status { + get { return status_; } + set { + status_ = value; + } + } + + /// Field number for the "items" field. + public const int ItemsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_items_codec + = pb::FieldCodec.ForMessage(18, global::POGOProtos.Networking.Envelopes.GetStoreItemsResponse.Types.StoreItem.Parser); + private readonly pbc::RepeatedField items_ = new pbc::RepeatedField(); + /// + /// Items to show in the shop + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Items { + get { return items_; } + } + + /// Field number for the "player_currencies" field. + public const int PlayerCurrenciesFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_playerCurrencies_codec + = pb::FieldCodec.ForMessage(26, global::POGOProtos.Data.Player.Currency.Parser); + private readonly pbc::RepeatedField playerCurrencies_ = new pbc::RepeatedField(); + /// + /// currencies that player has at the moment + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField PlayerCurrencies { + get { return playerCurrencies_; } + } + + /// Field number for the "unknown4" field. + public const int Unknown4FieldNumber = 4; + private string unknown4_ = ""; + /// + /// Some base64 encoded stuff... (Developer payload?) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Unknown4 { + get { return unknown4_; } + set { + unknown4_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as GetStoreItemsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(GetStoreItemsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Status != other.Status) return false; + if(!items_.Equals(other.items_)) return false; + if(!playerCurrencies_.Equals(other.playerCurrencies_)) return false; + if (Unknown4 != other.Unknown4) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Status != 0) hash ^= Status.GetHashCode(); + hash ^= items_.GetHashCode(); + hash ^= playerCurrencies_.GetHashCode(); + if (Unknown4.Length != 0) hash ^= Unknown4.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Status != 0) { + output.WriteRawTag(8); + output.WriteEnum((int) Status); + } + items_.WriteTo(output, _repeated_items_codec); + playerCurrencies_.WriteTo(output, _repeated_playerCurrencies_codec); + if (Unknown4.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Unknown4); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Status != 0) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); + } + size += items_.CalculateSize(_repeated_items_codec); + size += playerCurrencies_.CalculateSize(_repeated_playerCurrencies_codec); + if (Unknown4.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Unknown4); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(GetStoreItemsResponse other) { + if (other == null) { + return; + } + if (other.Status != 0) { + Status = other.Status; + } + items_.Add(other.items_); + playerCurrencies_.Add(other.playerCurrencies_); + if (other.Unknown4.Length != 0) { + Unknown4 = other.Unknown4; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 8: { + status_ = (global::POGOProtos.Networking.Envelopes.GetStoreItemsResponse.Types.Status) input.ReadEnum(); + break; + } + case 18: { + items_.AddEntriesFrom(input, _repeated_items_codec); + break; + } + case 26: { + playerCurrencies_.AddEntriesFrom(input, _repeated_playerCurrencies_codec); + break; + } + case 34: { + Unknown4 = input.ReadString(); + break; + } + } + } + } + + #region Nested types + /// Container for nested types declared in the GetStoreItemsResponse message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static partial class Types { + public enum Status { + [pbr::OriginalName("UNDEFINED")] Undefined = 0, + [pbr::OriginalName("OKAY")] Okay = 1, + } + + public sealed partial class StoreItem : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StoreItem()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::POGOProtos.Networking.Envelopes.GetStoreItemsResponse.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StoreItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StoreItem(StoreItem other) : this() { + itemId_ = other.itemId_; + isIap_ = other.isIap_; + CurrencyToBuy = other.currencyToBuy_ != null ? other.CurrencyToBuy.Clone() : null; + YieldsCurrency = other.yieldsCurrency_ != null ? other.YieldsCurrency.Clone() : null; + YieldsItem = other.yieldsItem_ != null ? other.YieldsItem.Clone() : null; + tags_ = other.tags_.Clone(); + unknown7_ = other.unknown7_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public StoreItem Clone() { + return new StoreItem(this); + } + + /// Field number for the "item_id" field. + public const int ItemIdFieldNumber = 1; + private string itemId_ = ""; + /// + /// Internal ID (probably for Google Play/App Store) example: "pgorelease.incenseordinary.1" + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string ItemId { + get { return itemId_; } + set { + itemId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "is_iap" field. + public const int IsIapFieldNumber = 2; + private bool isIap_; + /// + /// If true, this item is bought with real currency (USD, etc.) through the Play/App Store instead of Pokecoins + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsIap { + get { return isIap_; } + set { + isIap_ = value; + } + } + + /// Field number for the "currency_to_buy" field. + public const int CurrencyToBuyFieldNumber = 3; + private global::POGOProtos.Data.Player.Currency currencyToBuy_; + /// + /// This defines how much the item costs (with the exception of items that cost real money like Pokecoins, that's defined in the respective store) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::POGOProtos.Data.Player.Currency CurrencyToBuy { + get { return currencyToBuy_; } + set { + currencyToBuy_ = value; + } + } + + /// Field number for the "yields_currency" field. + public const int YieldsCurrencyFieldNumber = 4; + private global::POGOProtos.Data.Player.Currency yieldsCurrency_; + /// + /// When bought, this IAP will yield this much currency + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::POGOProtos.Data.Player.Currency YieldsCurrency { + get { return yieldsCurrency_; } + set { + yieldsCurrency_ = value; + } + } + + /// Field number for the "yields_item" field. + public const int YieldsItemFieldNumber = 5; + private global::POGOProtos.Inventory.Item.ItemData yieldsItem_; + /// + /// The item and count of such item that this IAP will yield + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::POGOProtos.Inventory.Item.ItemData YieldsItem { + get { return yieldsItem_; } + set { + yieldsItem_ = value; + } + } + + /// Field number for the "tags" field. + public const int TagsFieldNumber = 6; + private static readonly pbc::MapField.Codec _map_tags_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForString(18), 50); + private readonly pbc::MapField tags_ = new pbc::MapField(); + /// + /// Stuff like SORT:12, CATEGORY:ITEMS + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::MapField Tags { + get { return tags_; } + } + + /// Field number for the "unknown7" field. + public const int Unknown7FieldNumber = 7; + private int unknown7_; + /// + /// Possibly something to toggle visibility in the store/purchasibility? + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Unknown7 { + get { return unknown7_; } + set { + unknown7_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as StoreItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(StoreItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ItemId != other.ItemId) return false; + if (IsIap != other.IsIap) return false; + if (!object.Equals(CurrencyToBuy, other.CurrencyToBuy)) return false; + if (!object.Equals(YieldsCurrency, other.YieldsCurrency)) return false; + if (!object.Equals(YieldsItem, other.YieldsItem)) return false; + if (!Tags.Equals(other.Tags)) return false; + if (Unknown7 != other.Unknown7) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (ItemId.Length != 0) hash ^= ItemId.GetHashCode(); + if (IsIap != false) hash ^= IsIap.GetHashCode(); + if (currencyToBuy_ != null) hash ^= CurrencyToBuy.GetHashCode(); + if (yieldsCurrency_ != null) hash ^= YieldsCurrency.GetHashCode(); + if (yieldsItem_ != null) hash ^= YieldsItem.GetHashCode(); + hash ^= Tags.GetHashCode(); + if (Unknown7 != 0) hash ^= Unknown7.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (ItemId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ItemId); + } + if (IsIap != false) { + output.WriteRawTag(16); + output.WriteBool(IsIap); + } + if (currencyToBuy_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CurrencyToBuy); + } + if (yieldsCurrency_ != null) { + output.WriteRawTag(34); + output.WriteMessage(YieldsCurrency); + } + if (yieldsItem_ != null) { + output.WriteRawTag(42); + output.WriteMessage(YieldsItem); + } + tags_.WriteTo(output, _map_tags_codec); + if (Unknown7 != 0) { + output.WriteRawTag(56); + output.WriteInt32(Unknown7); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (ItemId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ItemId); + } + if (IsIap != false) { + size += 1 + 1; + } + if (currencyToBuy_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CurrencyToBuy); + } + if (yieldsCurrency_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(YieldsCurrency); + } + if (yieldsItem_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(YieldsItem); + } + size += tags_.CalculateSize(_map_tags_codec); + if (Unknown7 != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Unknown7); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(StoreItem other) { + if (other == null) { + return; + } + if (other.ItemId.Length != 0) { + ItemId = other.ItemId; + } + if (other.IsIap != false) { + IsIap = other.IsIap; + } + if (other.currencyToBuy_ != null) { + if (currencyToBuy_ == null) { + currencyToBuy_ = new global::POGOProtos.Data.Player.Currency(); + } + CurrencyToBuy.MergeFrom(other.CurrencyToBuy); + } + if (other.yieldsCurrency_ != null) { + if (yieldsCurrency_ == null) { + yieldsCurrency_ = new global::POGOProtos.Data.Player.Currency(); + } + YieldsCurrency.MergeFrom(other.YieldsCurrency); + } + if (other.yieldsItem_ != null) { + if (yieldsItem_ == null) { + yieldsItem_ = new global::POGOProtos.Inventory.Item.ItemData(); + } + YieldsItem.MergeFrom(other.YieldsItem); + } + tags_.Add(other.tags_); + if (other.Unknown7 != 0) { + Unknown7 = other.Unknown7; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 10: { + ItemId = input.ReadString(); + break; + } + case 16: { + IsIap = input.ReadBool(); + break; + } + case 26: { + if (currencyToBuy_ == null) { + currencyToBuy_ = new global::POGOProtos.Data.Player.Currency(); + } + input.ReadMessage(currencyToBuy_); + break; + } + case 34: { + if (yieldsCurrency_ == null) { + yieldsCurrency_ = new global::POGOProtos.Data.Player.Currency(); + } + input.ReadMessage(yieldsCurrency_); + break; + } + case 42: { + if (yieldsItem_ == null) { + yieldsItem_ = new global::POGOProtos.Inventory.Item.ItemData(); + } + input.ReadMessage(yieldsItem_); + break; + } + case 50: { + tags_.AddEntriesFrom(input, _map_tags_codec); + break; + } + case 56: { + Unknown7 = input.ReadInt32(); + break; + } + } + } + } + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Networking/Platform/Responses/SendEncryptedSignatureResponse.cs b/Networking/Platform/Responses/SendEncryptedSignatureResponse.cs new file mode 100644 index 0000000..be34a14 --- /dev/null +++ b/Networking/Platform/Responses/SendEncryptedSignatureResponse.cs @@ -0,0 +1,164 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: POGOProtos/Networking/Platform/Responses/SendEncryptedSignatureResponse.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace POGOProtos.Networking.Platform.Responses { + + /// Holder for reflection information generated from POGOProtos/Networking/Platform/Responses/SendEncryptedSignatureResponse.proto + public static partial class SendEncryptedSignatureResponseReflection { + + #region Descriptor + /// File descriptor for POGOProtos/Networking/Platform/Responses/SendEncryptedSignatureResponse.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SendEncryptedSignatureResponseReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ck1QT0dPUHJvdG9zL05ldHdvcmtpbmcvUGxhdGZvcm0vUmVzcG9uc2VzL1Nl", + "bmRFbmNyeXB0ZWRTaWduYXR1cmVSZXNwb25zZS5wcm90bxIoUE9HT1Byb3Rv", + "cy5OZXR3b3JraW5nLlBsYXRmb3JtLlJlc3BvbnNlcyIyCh5TZW5kRW5jcnlw", + "dGVkU2lnbmF0dXJlUmVzcG9uc2USEAoIcmVjZWl2ZWQYASABKAhiBnByb3Rv", + "Mw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Platform.Responses.SendEncryptedSignatureResponse), global::POGOProtos.Networking.Platform.Responses.SendEncryptedSignatureResponse.Parser, new[]{ "Received" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class SendEncryptedSignatureResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SendEncryptedSignatureResponse()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::POGOProtos.Networking.Platform.Responses.SendEncryptedSignatureResponseReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SendEncryptedSignatureResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SendEncryptedSignatureResponse(SendEncryptedSignatureResponse other) : this() { + received_ = other.received_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SendEncryptedSignatureResponse Clone() { + return new SendEncryptedSignatureResponse(this); + } + + /// Field number for the "received" field. + public const int ReceivedFieldNumber = 1; + private bool received_; + /// + /// speculated, could be an enum + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Received { + get { return received_; } + set { + received_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SendEncryptedSignatureResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SendEncryptedSignatureResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Received != other.Received) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Received != false) hash ^= Received.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Received != false) { + output.WriteRawTag(8); + output.WriteBool(Received); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Received != false) { + size += 1 + 1; + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SendEncryptedSignatureResponse other) { + if (other == null) { + return; + } + if (other.Received != false) { + Received = other.Received; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 8: { + Received = input.ReadBool(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Networking/Requests/Messages/SetFavoritePokemonMessage.cs b/Networking/Requests/Messages/SetFavoritePokemonMessage.cs index b3cd56b..c24be4c 100644 --- a/Networking/Requests/Messages/SetFavoritePokemonMessage.cs +++ b/Networking/Requests/Messages/SetFavoritePokemonMessage.cs @@ -7,220 +7,185 @@ using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; -namespace POGOProtos.Networking.Requests.Messages -{ - - /// Holder for reflection information generated from POGOProtos/Networking/Requests/Messages/SetFavoritePokemonMessage.proto - public static partial class SetFavoritePokemonMessageReflection - { - - #region Descriptor - /// File descriptor for POGOProtos/Networking/Requests/Messages/SetFavoritePokemonMessage.proto - public static pbr::FileDescriptor Descriptor - { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static SetFavoritePokemonMessageReflection() - { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CkdQT0dPUHJvdG9zL05ldHdvcmtpbmcvUmVxdWVzdHMvTWVzc2FnZXMvU2V0", - "RmF2b3JpdGVQb2tlbW9uTWVzc2FnZS5wcm90bxInUE9HT1Byb3Rvcy5OZXR3", - "b3JraW5nLlJlcXVlc3RzLk1lc3NhZ2VzIkQKGVNldEZhdm9yaXRlUG9rZW1v", - "bk1lc3NhZ2USEgoKcG9rZW1vbl9pZBgBIAEoAxITCgtpc19mYXZvcml0ZRgC", - "IAEoCGIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Requests.Messages.SetFavoritePokemonMessage), global::POGOProtos.Networking.Requests.Messages.SetFavoritePokemonMessage.Parser, new[]{ "PokemonId", "IsFavorite" }, null, null, null) - })); - } - #endregion +namespace POGOProtos.Networking.Requests.Messages { + /// Holder for reflection information generated from POGOProtos/Networking/Requests/Messages/SetFavoritePokemonMessage.proto + public static partial class SetFavoritePokemonMessageReflection { + + #region Descriptor + /// File descriptor for POGOProtos/Networking/Requests/Messages/SetFavoritePokemonMessage.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SetFavoritePokemonMessageReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CkdQT0dPUHJvdG9zL05ldHdvcmtpbmcvUmVxdWVzdHMvTWVzc2FnZXMvU2V0", + "RmF2b3JpdGVQb2tlbW9uTWVzc2FnZS5wcm90bxInUE9HT1Byb3Rvcy5OZXR3", + "b3JraW5nLlJlcXVlc3RzLk1lc3NhZ2VzIkQKGVNldEZhdm9yaXRlUG9rZW1v", + "bk1lc3NhZ2USEgoKcG9rZW1vbl9pZBgBIAEoAxITCgtpc19mYXZvcml0ZRgC", + "IAEoCGIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Requests.Messages.SetFavoritePokemonMessage), global::POGOProtos.Networking.Requests.Messages.SetFavoritePokemonMessage.Parser, new[]{ "PokemonId", "IsFavorite" }, null, null, null) + })); } - #region Messages - public sealed partial class SetFavoritePokemonMessage : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetFavoritePokemonMessage()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } + #endregion - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor - { - get { return global::POGOProtos.Networking.Requests.Messages.SetFavoritePokemonMessageReflection.Descriptor.MessageTypes[0]; } - } + } + #region Messages + public sealed partial class SetFavoritePokemonMessage : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetFavoritePokemonMessage()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::POGOProtos.Networking.Requests.Messages.SetFavoritePokemonMessageReflection.Descriptor.MessageTypes[0]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public SetFavoritePokemonMessage() - { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetFavoritePokemonMessage() { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public SetFavoritePokemonMessage(SetFavoritePokemonMessage other) : this() - { - pokemonId_ = other.pokemonId_; - isFavorite_ = other.isFavorite_; - } + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public SetFavoritePokemonMessage Clone() - { - return new SetFavoritePokemonMessage(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetFavoritePokemonMessage(SetFavoritePokemonMessage other) : this() { + pokemonId_ = other.pokemonId_; + isFavorite_ = other.isFavorite_; + } - /// Field number for the "pokemon_id" field. - public const int PokemonIdFieldNumber = 1; - private ulong pokemonId_; - /// - /// Do not change https://github.com/AeonLucid/POGOProtos/pull/126 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong PokemonId - { - get { return pokemonId_; } - set - { - pokemonId_ = value; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetFavoritePokemonMessage Clone() { + return new SetFavoritePokemonMessage(this); + } - /// Field number for the "is_favorite" field. - public const int IsFavoriteFieldNumber = 2; - private bool isFavorite_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool IsFavorite - { - get { return isFavorite_; } - set - { - isFavorite_ = value; - } - } + /// Field number for the "pokemon_id" field. + public const int PokemonIdFieldNumber = 1; + private ulong pokemonId_; + /// + /// Do not change https://github.com/AeonLucid/POGOProtos/pull/126 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public ulong PokemonId { + get { return pokemonId_; } + set { + pokemonId_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) - { - return Equals(other as SetFavoritePokemonMessage); - } + /// Field number for the "is_favorite" field. + public const int IsFavoriteFieldNumber = 2; + private bool isFavorite_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsFavorite { + get { return isFavorite_; } + set { + isFavorite_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(SetFavoritePokemonMessage other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (PokemonId != other.PokemonId) return false; - if (IsFavorite != other.IsFavorite) return false; - return true; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SetFavoritePokemonMessage); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() - { - int hash = 1; - if (PokemonId != 0L) hash ^= PokemonId.GetHashCode(); - if (IsFavorite != false) hash ^= IsFavorite.GetHashCode(); - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SetFavoritePokemonMessage other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PokemonId != other.PokemonId) return false; + if (IsFavorite != other.IsFavorite) return false; + return true; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (PokemonId != 0L) hash ^= PokemonId.GetHashCode(); + if (IsFavorite != false) hash ^= IsFavorite.GetHashCode(); + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) - { - if (PokemonId != 0L) - { - output.WriteRawTag(8); - output.WriteUInt64(PokemonId); - } - if (IsFavorite != false) - { - output.WriteRawTag(16); - output.WriteBool(IsFavorite); - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() - { - int size = 0; - if (PokemonId != 0L) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PokemonId); - } - if (IsFavorite != false) - { - size += 1 + 1; - } - return size; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (PokemonId != 0L) { + output.WriteRawTag(8); + output.WriteUInt64(PokemonId); + } + if (IsFavorite != false) { + output.WriteRawTag(16); + output.WriteBool(IsFavorite); + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(SetFavoritePokemonMessage other) - { - if (other == null) - { - return; - } - if (other.PokemonId != 0L) - { - PokemonId = other.PokemonId; - } - if (other.IsFavorite != false) - { - IsFavorite = other.IsFavorite; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (PokemonId != 0L) { + size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PokemonId); + } + if (IsFavorite != false) { + size += 1 + 1; + } + return size; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - PokemonId = input.ReadUInt64(); - break; - } - case 16: - { - IsFavorite = input.ReadBool(); - break; - } - } - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SetFavoritePokemonMessage other) { + if (other == null) { + return; + } + if (other.PokemonId != 0L) { + PokemonId = other.PokemonId; + } + if (other.IsFavorite != false) { + IsFavorite = other.IsFavorite; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 8: { + PokemonId = input.ReadUInt64(); + break; + } + case 16: { + IsFavorite = input.ReadBool(); + break; + } + } + } } - #endregion + } + + #endregion } diff --git a/Networking/Requests/POGOProtosNetworkingRequests.cs b/Networking/Requests/POGOProtosNetworkingRequests.cs deleted file mode 100644 index b1785f8..0000000 --- a/Networking/Requests/POGOProtosNetworkingRequests.cs +++ /dev/null @@ -1,508 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: POGOProtos.Networking.Requests.proto -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace POGOProtos.Networking.Requests { - - /// Holder for reflection information generated from POGOProtos.Networking.Requests.proto - public static partial class POGOProtosNetworkingRequestsReflection { - - #region Descriptor - /// File descriptor for POGOProtos.Networking.Requests.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static POGOProtosNetworkingRequestsReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CiRQT0dPUHJvdG9zLk5ldHdvcmtpbmcuUmVxdWVzdHMucHJvdG8SHlBPR09Q", - "cm90b3MuTmV0d29ya2luZy5SZXF1ZXN0cyJlCgdSZXF1ZXN0EkEKDHJlcXVl", - "c3RfdHlwZRgBIAEoDjIrLlBPR09Qcm90b3MuTmV0d29ya2luZy5SZXF1ZXN0", - "cy5SZXF1ZXN0VHlwZRIXCg9yZXF1ZXN0X21lc3NhZ2UYAiABKAwqwQwKC1Jl", - "cXVlc3RUeXBlEhAKDE1FVEhPRF9VTlNFVBAAEhEKDVBMQVlFUl9VUERBVEUQ", - "ARIOCgpHRVRfUExBWUVSEAISEQoNR0VUX0lOVkVOVE9SWRAEEhUKEURPV05M", - "T0FEX1NFVFRJTkdTEAUSGwoXRE9XTkxPQURfSVRFTV9URU1QTEFURVMQBhIi", - "Ch5ET1dOTE9BRF9SRU1PVEVfQ09ORklHX1ZFUlNJT04QBxIPCgtGT1JUX1NF", - "QVJDSBBlEg0KCUVOQ09VTlRFUhBmEhEKDUNBVENIX1BPS0VNT04QZxIQCgxG", - "T1JUX0RFVEFJTFMQaBIMCghJVEVNX1VTRRBpEhMKD0dFVF9NQVBfT0JKRUNU", - "UxBqEhcKE0ZPUlRfREVQTE9ZX1BPS0VNT04QbhIXChNGT1JUX1JFQ0FMTF9Q", - "T0tFTU9OEG8SEwoPUkVMRUFTRV9QT0tFTU9OEHASEwoPVVNFX0lURU1fUE9U", - "SU9OEHESFAoQVVNFX0lURU1fQ0FQVFVSRRByEhEKDVVTRV9JVEVNX0ZMRUUQ", - "cxITCg9VU0VfSVRFTV9SRVZJVkUQdBIQCgxUUkFERV9TRUFSQ0gQdRIPCgtU", - "UkFERV9PRkZFUhB2EhIKDlRSQURFX1JFU1BPTlNFEHcSEAoMVFJBREVfUkVT", - "VUxUEHgSFgoSR0VUX1BMQVlFUl9QUk9GSUxFEHkSEQoNR0VUX0lURU1fUEFD", - "SxB6EhEKDUJVWV9JVEVNX1BBQ0sQexIQCgxCVVlfR0VNX1BBQ0sQfBISCg5F", - "Vk9MVkVfUE9LRU1PThB9EhQKEEdFVF9IQVRDSEVEX0VHR1MQfhIfChtFTkNP", - "VU5URVJfVFVUT1JJQUxfQ09NUExFVEUQfxIVChBMRVZFTF9VUF9SRVdBUkRT", - "EIABEhkKFENIRUNLX0FXQVJERURfQkFER0VTEIEBEhEKDFVTRV9JVEVNX0dZ", - "TRCFARIUCg9HRVRfR1lNX0RFVEFJTFMQhgESFQoQU1RBUlRfR1lNX0JBVFRM", - "RRCHARIPCgpBVFRBQ0tfR1lNEIgBEhsKFlJFQ1lDTEVfSU5WRU5UT1JZX0lU", - "RU0QiQESGAoTQ09MTEVDVF9EQUlMWV9CT05VUxCKARIWChFVU0VfSVRFTV9Y", - "UF9CT09TVBCLARIbChZVU0VfSVRFTV9FR0dfSU5DVUJBVE9SEIwBEhAKC1VT", - "RV9JTkNFTlNFEI0BEhgKE0dFVF9JTkNFTlNFX1BPS0VNT04QjgESFgoRSU5D", - "RU5TRV9FTkNPVU5URVIQjwESFgoRQUREX0ZPUlRfTU9ESUZJRVIQkAESEwoO", - "RElTS19FTkNPVU5URVIQkQESIQocQ09MTEVDVF9EQUlMWV9ERUZFTkRFUl9C", - "T05VUxCSARIUCg9VUEdSQURFX1BPS0VNT04QkwESGQoUU0VUX0ZBVk9SSVRF", - "X1BPS0VNT04QlAESFQoQTklDS05BTUVfUE9LRU1PThCVARIQCgtFUVVJUF9C", - "QURHRRCWARIZChRTRVRfQ09OVEFDVF9TRVRUSU5HUxCXARIVChBHRVRfQVNT", - "RVRfRElHRVNUEKwCEhYKEUdFVF9ET1dOTE9BRF9VUkxTEK0CEhwKF0dFVF9T", - "VUdHRVNURURfQ09ERU5BTUVTEJEDEh0KGENIRUNLX0NPREVOQU1FX0FWQUlM", - "QUJMRRCSAxITCg5DTEFJTV9DT0RFTkFNRRCTAxIPCgpTRVRfQVZBVEFSEJQD", - "EhQKD1NFVF9QTEFZRVJfVEVBTRCVAxIbChZNQVJLX1RVVE9SSUFMX0NPTVBM", - "RVRFEJYDEhYKEUxPQURfU1BBV05fUE9JTlRTEPQDEgkKBEVDSE8QmgUSGwoW", - "REVCVUdfVVBEQVRFX0lOVkVOVE9SWRC8BRIYChNERUJVR19ERUxFVEVfUExB", - "WUVSEL0FEhcKElNGSURBX1JFR0lTVFJBVElPThCgBhIVChBTRklEQV9BQ1RJ", - "T05fTE9HEKEGEhgKE1NGSURBX0NFUlRJRklDQVRJT04QogYSEQoMU0ZJREFf", - "VVBEQVRFEKMGEhEKDFNGSURBX0FDVElPThCkBhIRCgxTRklEQV9ET1dTRVIQ", - "pQYSEgoNU0ZJREFfQ0FQVFVSRRCmBmIGcHJvdG8z")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(new[] {typeof(global::POGOProtos.Networking.Requests.RequestType), }, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Requests.Request), global::POGOProtos.Networking.Requests.Request.Parser, new[]{ "RequestType", "RequestMessage" }, null, null, null) - })); - } - #endregion - - } - #region Enums - public enum RequestType { - /// - /// No implementation required - /// - [pbr::OriginalName("METHOD_UNSET")] MethodUnset = 0, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("PLAYER_UPDATE")] PlayerUpdate = 1, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("GET_PLAYER")] GetPlayer = 2, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("GET_INVENTORY")] GetInventory = 4, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("DOWNLOAD_SETTINGS")] DownloadSettings = 5, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("DOWNLOAD_ITEM_TEMPLATES")] DownloadItemTemplates = 6, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("DOWNLOAD_REMOTE_CONFIG_VERSION")] DownloadRemoteConfigVersion = 7, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("FORT_SEARCH")] FortSearch = 101, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("ENCOUNTER")] Encounter = 102, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("CATCH_POKEMON")] CatchPokemon = 103, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("FORT_DETAILS")] FortDetails = 104, - /// - /// Can't find this one - /// - [pbr::OriginalName("ITEM_USE")] ItemUse = 105, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("GET_MAP_OBJECTS")] GetMapObjects = 106, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("FORT_DEPLOY_POKEMON")] FortDeployPokemon = 110, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("FORT_RECALL_POKEMON")] FortRecallPokemon = 111, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("RELEASE_POKEMON")] ReleasePokemon = 112, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("USE_ITEM_POTION")] UseItemPotion = 113, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("USE_ITEM_CAPTURE")] UseItemCapture = 114, - /// - /// Can't find this one - /// - [pbr::OriginalName("USE_ITEM_FLEE")] UseItemFlee = 115, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("USE_ITEM_REVIVE")] UseItemRevive = 116, - /// - /// Not yet implemented in the game - /// - [pbr::OriginalName("TRADE_SEARCH")] TradeSearch = 117, - /// - /// Not yet implemented in the game - /// - [pbr::OriginalName("TRADE_OFFER")] TradeOffer = 118, - /// - /// Not yet implemented in the game - /// - [pbr::OriginalName("TRADE_RESPONSE")] TradeResponse = 119, - /// - /// Not yet implemented in the game - /// - [pbr::OriginalName("TRADE_RESULT")] TradeResult = 120, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("GET_PLAYER_PROFILE")] GetPlayerProfile = 121, - /// - /// Can't find this one - /// - [pbr::OriginalName("GET_ITEM_PACK")] GetItemPack = 122, - /// - /// Can't find this one - /// - [pbr::OriginalName("BUY_ITEM_PACK")] BuyItemPack = 123, - /// - /// Can't find this one - /// - [pbr::OriginalName("BUY_GEM_PACK")] BuyGemPack = 124, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("EVOLVE_POKEMON")] EvolvePokemon = 125, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("GET_HATCHED_EGGS")] GetHatchedEggs = 126, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("ENCOUNTER_TUTORIAL_COMPLETE")] EncounterTutorialComplete = 127, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("LEVEL_UP_REWARDS")] LevelUpRewards = 128, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("CHECK_AWARDED_BADGES")] CheckAwardedBadges = 129, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("USE_ITEM_GYM")] UseItemGym = 133, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("GET_GYM_DETAILS")] GetGymDetails = 134, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("START_GYM_BATTLE")] StartGymBattle = 135, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("ATTACK_GYM")] AttackGym = 136, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("RECYCLE_INVENTORY_ITEM")] RecycleInventoryItem = 137, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("COLLECT_DAILY_BONUS")] CollectDailyBonus = 138, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("USE_ITEM_XP_BOOST")] UseItemXpBoost = 139, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("USE_ITEM_EGG_INCUBATOR")] UseItemEggIncubator = 140, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("USE_INCENSE")] UseIncense = 141, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("GET_INCENSE_POKEMON")] GetIncensePokemon = 142, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("INCENSE_ENCOUNTER")] IncenseEncounter = 143, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("ADD_FORT_MODIFIER")] AddFortModifier = 144, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("DISK_ENCOUNTER")] DiskEncounter = 145, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("COLLECT_DAILY_DEFENDER_BONUS")] CollectDailyDefenderBonus = 146, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("UPGRADE_POKEMON")] UpgradePokemon = 147, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("SET_FAVORITE_POKEMON")] SetFavoritePokemon = 148, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("NICKNAME_POKEMON")] NicknamePokemon = 149, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("EQUIP_BADGE")] EquipBadge = 150, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("SET_CONTACT_SETTINGS")] SetContactSettings = 151, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("GET_ASSET_DIGEST")] GetAssetDigest = 300, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("GET_DOWNLOAD_URLS")] GetDownloadUrls = 301, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("GET_SUGGESTED_CODENAMES")] GetSuggestedCodenames = 401, - /// - /// Implemented [R & M] TEST RESPONSE - /// - [pbr::OriginalName("CHECK_CODENAME_AVAILABLE")] CheckCodenameAvailable = 402, - /// - /// Implemented [R & M] TEST RESPONSE - /// - [pbr::OriginalName("CLAIM_CODENAME")] ClaimCodename = 403, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("SET_AVATAR")] SetAvatar = 404, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("SET_PLAYER_TEAM")] SetPlayerTeam = 405, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("MARK_TUTORIAL_COMPLETE")] MarkTutorialComplete = 406, - /// - /// Can't find this one - /// - [pbr::OriginalName("LOAD_SPAWN_POINTS")] LoadSpawnPoints = 500, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("ECHO")] Echo = 666, - [pbr::OriginalName("DEBUG_UPDATE_INVENTORY")] DebugUpdateInventory = 700, - [pbr::OriginalName("DEBUG_DELETE_PLAYER")] DebugDeletePlayer = 701, - /// - /// Not yet released. - /// - [pbr::OriginalName("SFIDA_REGISTRATION")] SfidaRegistration = 800, - /// - /// Implemented [R & M] - /// - [pbr::OriginalName("SFIDA_ACTION_LOG")] SfidaActionLog = 801, - /// - /// Not yet released. - /// - [pbr::OriginalName("SFIDA_CERTIFICATION")] SfidaCertification = 802, - /// - /// Not yet released. - /// - [pbr::OriginalName("SFIDA_UPDATE")] SfidaUpdate = 803, - /// - /// Not yet released. - /// - [pbr::OriginalName("SFIDA_ACTION")] SfidaAction = 804, - /// - /// Not yet released. - /// - [pbr::OriginalName("SFIDA_DOWSER")] SfidaDowser = 805, - /// - /// Not yet released. - /// - [pbr::OriginalName("SFIDA_CAPTURE")] SfidaCapture = 806, - } - - #endregion - - #region Messages - public sealed partial class Request : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Request()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Requests.POGOProtosNetworkingRequestsReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Request() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Request(Request other) : this() { - requestType_ = other.requestType_; - requestMessage_ = other.requestMessage_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Request Clone() { - return new Request(this); - } - - /// Field number for the "request_type" field. - public const int RequestTypeFieldNumber = 1; - private global::POGOProtos.Networking.Requests.RequestType requestType_ = 0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Networking.Requests.RequestType RequestType { - get { return requestType_; } - set { - requestType_ = value; - } - } - - /// Field number for the "request_message" field. - public const int RequestMessageFieldNumber = 2; - private pb::ByteString requestMessage_ = pb::ByteString.Empty; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pb::ByteString RequestMessage { - get { return requestMessage_; } - set { - requestMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as Request); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Request other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (RequestType != other.RequestType) return false; - if (RequestMessage != other.RequestMessage) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (RequestType != 0) hash ^= RequestType.GetHashCode(); - if (RequestMessage.Length != 0) hash ^= RequestMessage.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (RequestType != 0) { - output.WriteRawTag(8); - output.WriteEnum((int) RequestType); - } - if (RequestMessage.Length != 0) { - output.WriteRawTag(18); - output.WriteBytes(RequestMessage); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (RequestType != 0) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RequestType); - } - if (RequestMessage.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(RequestMessage); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Request other) { - if (other == null) { - return; - } - if (other.RequestType != 0) { - RequestType = other.RequestType; - } - if (other.RequestMessage.Length != 0) { - RequestMessage = other.RequestMessage; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 8: { - requestType_ = (global::POGOProtos.Networking.Requests.RequestType) input.ReadEnum(); - break; - } - case 18: { - RequestMessage = input.ReadBytes(); - break; - } - } - } - } - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/Networking/Responses/DiskEncounterResponse.cs b/Networking/Responses/DiskEncounterResponse.cs index 7011cbc..ea6895a 100644 --- a/Networking/Responses/DiskEncounterResponse.cs +++ b/Networking/Responses/DiskEncounterResponse.cs @@ -24,8 +24,8 @@ static DiskEncounterResponseReflection() { string.Concat( "CjtQT0dPUHJvdG9zL05ldHdvcmtpbmcvUmVzcG9uc2VzL0Rpc2tFbmNvdW50", "ZXJSZXNwb25zZS5wcm90bxIfUE9HT1Byb3Rvcy5OZXR3b3JraW5nLlJlc3Bv", - "bnNlcxohUE9HT1Byb3Rvcy9EYXRhL1Bva2Vtb25EYXRhLnByb3RvGjBQT0dP", - "UHJvdG9zL0RhdGEvQ2FwdHVyZS9DYXB0dXJlUHJvYmFiaWxpdHkucHJvdG8i", + "bnNlcxowUE9HT1Byb3Rvcy9EYXRhL0NhcHR1cmUvQ2FwdHVyZVByb2JhYmls", + "aXR5LnByb3RvGiFQT0dPUHJvdG9zL0RhdGEvUG9rZW1vbkRhdGEucHJvdG8i", "6gIKFURpc2tFbmNvdW50ZXJSZXNwb25zZRJNCgZyZXN1bHQYASABKA4yPS5Q", "T0dPUHJvdG9zLk5ldHdvcmtpbmcuUmVzcG9uc2VzLkRpc2tFbmNvdW50ZXJS", "ZXNwb25zZS5SZXN1bHQSMgoMcG9rZW1vbl9kYXRhGAIgASgLMhwuUE9HT1By", @@ -36,7 +36,7 @@ static DiskEncounterResponseReflection() { "RVJfQUxSRUFEWV9GSU5JU0hFRBAEEhoKFlBPS0VNT05fSU5WRU5UT1JZX0ZV", "TEwQBWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::POGOProtos.Data.PokemonDataReflection.Descriptor, global::POGOProtos.Data.Capture.CaptureProbabilityReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::POGOProtos.Data.Capture.CaptureProbabilityReflection.Descriptor, global::POGOProtos.Data.PokemonDataReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Responses.DiskEncounterResponse), global::POGOProtos.Networking.Responses.DiskEncounterResponse.Parser, new[]{ "Result", "PokemonData", "CaptureProbability" }, null, new[]{ typeof(global::POGOProtos.Networking.Responses.DiskEncounterResponse.Types.Result) }, null) })); diff --git a/Networking/Responses/DownloadItemTemplatesResponse.cs b/Networking/Responses/DownloadItemTemplatesResponse.cs index 15bb120..a953fec 100644 --- a/Networking/Responses/DownloadItemTemplatesResponse.cs +++ b/Networking/Responses/DownloadItemTemplatesResponse.cs @@ -24,24 +24,24 @@ static DownloadItemTemplatesResponseReflection() { string.Concat( "CkNQT0dPUHJvdG9zL05ldHdvcmtpbmcvUmVzcG9uc2VzL0Rvd25sb2FkSXRl", "bVRlbXBsYXRlc1Jlc3BvbnNlLnByb3RvEh9QT0dPUHJvdG9zLk5ldHdvcmtp", - "bmcuUmVzcG9uc2VzGi1QT0dPUHJvdG9zL1NldHRpbmdzL01hc3Rlci9JdGVt", - "U2V0dGluZ3MucHJvdG8aLVBPR09Qcm90b3MvU2V0dGluZ3MvTWFzdGVyL01v", - "dmVTZXR0aW5ncy5wcm90bxouUE9HT1Byb3Rvcy9TZXR0aW5ncy9NYXN0ZXIv", - "QmFkZ2VTZXR0aW5ncy5wcm90bxowUE9HT1Byb3Rvcy9TZXR0aW5ncy9NYXN0", - "ZXIvUG9rZW1vblNldHRpbmdzLnByb3RvGjVQT0dPUHJvdG9zL1NldHRpbmdz", - "L01hc3Rlci9Nb3ZlU2VxdWVuY2VTZXR0aW5ncy5wcm90bxo2UE9HT1Byb3Rv", - "cy9TZXR0aW5ncy9NYXN0ZXIvVHlwZUVmZmVjdGl2ZVNldHRpbmdzLnByb3Rv", - "Gi9QT0dPUHJvdG9zL1NldHRpbmdzL01hc3Rlci9DYW1lcmFTZXR0aW5ncy5w", - "cm90bxo0UE9HT1Byb3Rvcy9TZXR0aW5ncy9NYXN0ZXIvUGxheWVyTGV2ZWxT", - "ZXR0aW5ncy5wcm90bxoxUE9HT1Byb3Rvcy9TZXR0aW5ncy9NYXN0ZXIvR3lt", - "TGV2ZWxTZXR0aW5ncy5wcm90bxoyUE9HT1Byb3Rvcy9TZXR0aW5ncy9NYXN0", - "ZXIvR3ltQmF0dGxlU2V0dGluZ3MucHJvdG8aMlBPR09Qcm90b3MvU2V0dGlu", - "Z3MvTWFzdGVyL0VuY291bnRlclNldHRpbmdzLnByb3RvGi9QT0dPUHJvdG9z", - "L1NldHRpbmdzL01hc3Rlci9JYXBJdGVtRGlzcGxheS5wcm90bxosUE9HT1By", - "b3Rvcy9TZXR0aW5ncy9NYXN0ZXIvSWFwU2V0dGluZ3MucHJvdG8aN1BPR09Q", + "bmcuUmVzcG9uc2VzGi5QT0dPUHJvdG9zL1NldHRpbmdzL01hc3Rlci9CYWRn", + "ZVNldHRpbmdzLnByb3RvGi9QT0dPUHJvdG9zL1NldHRpbmdzL01hc3Rlci9D", + "YW1lcmFTZXR0aW5ncy5wcm90bxoyUE9HT1Byb3Rvcy9TZXR0aW5ncy9NYXN0", + "ZXIvRW5jb3VudGVyU2V0dGluZ3MucHJvdG8aNlBPR09Qcm90b3MvU2V0dGlu", + "Z3MvTWFzdGVyL0VxdWlwcGVkQmFkZ2VTZXR0aW5ncy5wcm90bxoyUE9HT1By", + "b3Rvcy9TZXR0aW5ncy9NYXN0ZXIvR3ltQmF0dGxlU2V0dGluZ3MucHJvdG8a", + "MVBPR09Qcm90b3MvU2V0dGluZ3MvTWFzdGVyL0d5bUxldmVsU2V0dGluZ3Mu", + "cHJvdG8aL1BPR09Qcm90b3MvU2V0dGluZ3MvTWFzdGVyL0lhcEl0ZW1EaXNw", + "bGF5LnByb3RvGixQT0dPUHJvdG9zL1NldHRpbmdzL01hc3Rlci9JYXBTZXR0", + "aW5ncy5wcm90bxotUE9HT1Byb3Rvcy9TZXR0aW5ncy9NYXN0ZXIvSXRlbVNl", + "dHRpbmdzLnByb3RvGjVQT0dPUHJvdG9zL1NldHRpbmdzL01hc3Rlci9Nb3Zl", + "U2VxdWVuY2VTZXR0aW5ncy5wcm90bxotUE9HT1Byb3Rvcy9TZXR0aW5ncy9N", + "YXN0ZXIvTW92ZVNldHRpbmdzLnByb3RvGjRQT0dPUHJvdG9zL1NldHRpbmdz", + "L01hc3Rlci9QbGF5ZXJMZXZlbFNldHRpbmdzLnByb3RvGjBQT0dPUHJvdG9z", + "L1NldHRpbmdzL01hc3Rlci9Qb2tlbW9uU2V0dGluZ3MucHJvdG8aN1BPR09Q", "cm90b3MvU2V0dGluZ3MvTWFzdGVyL1Bva2Vtb25VcGdyYWRlU2V0dGluZ3Mu", - "cHJvdG8aNlBPR09Qcm90b3MvU2V0dGluZ3MvTWFzdGVyL0VxdWlwcGVkQmFk", - "Z2VTZXR0aW5ncy5wcm90byLwCQodRG93bmxvYWRJdGVtVGVtcGxhdGVzUmVz", + "cHJvdG8aNlBPR09Qcm90b3MvU2V0dGluZ3MvTWFzdGVyL1R5cGVFZmZlY3Rp", + "dmVTZXR0aW5ncy5wcm90byLwCQodRG93bmxvYWRJdGVtVGVtcGxhdGVzUmVz", "cG9uc2USDwoHc3VjY2VzcxgBIAEoCBJjCg5pdGVtX3RlbXBsYXRlcxgCIAMo", "CzJLLlBPR09Qcm90b3MuTmV0d29ya2luZy5SZXNwb25zZXMuRG93bmxvYWRJ", "dGVtVGVtcGxhdGVzUmVzcG9uc2UuSXRlbVRlbXBsYXRlEhQKDHRpbWVzdGFt", @@ -71,7 +71,7 @@ static DownloadItemTemplatesResponseReflection() { "cHBlZF9iYWRnZXMYEyABKAsyMS5QT0dPUHJvdG9zLlNldHRpbmdzLk1hc3Rl", "ci5FcXVpcHBlZEJhZGdlU2V0dGluZ3NiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::POGOProtos.Settings.Master.ItemSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.MoveSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.BadgeSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.PokemonSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.MoveSequenceSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.TypeEffectiveSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.CameraSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.PlayerLevelSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.GymLevelSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.GymBattleSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.EncounterSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.IapItemDisplayReflection.Descriptor, global::POGOProtos.Settings.Master.IapSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.PokemonUpgradeSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.EquippedBadgeSettingsReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::POGOProtos.Settings.Master.BadgeSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.CameraSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.EncounterSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.EquippedBadgeSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.GymBattleSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.GymLevelSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.IapItemDisplayReflection.Descriptor, global::POGOProtos.Settings.Master.IapSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.ItemSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.MoveSequenceSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.MoveSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.PlayerLevelSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.PokemonSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.PokemonUpgradeSettingsReflection.Descriptor, global::POGOProtos.Settings.Master.TypeEffectiveSettingsReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Responses.DownloadItemTemplatesResponse), global::POGOProtos.Networking.Responses.DownloadItemTemplatesResponse.Parser, new[]{ "Success", "ItemTemplates", "TimestampMs" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Responses.DownloadItemTemplatesResponse.Types.ItemTemplate), global::POGOProtos.Networking.Responses.DownloadItemTemplatesResponse.Types.ItemTemplate.Parser, new[]{ "TemplateId", "PokemonSettings", "ItemSettings", "MoveSettings", "MoveSequenceSettings", "TypeEffective", "BadgeSettings", "Camera", "PlayerLevel", "GymLevel", "BattleSettings", "EncounterSettings", "IapItemDisplay", "IapSettings", "PokemonUpgrades", "EquippedBadges" }, null, null, null)}) })); diff --git a/Networking/Responses/EncounterTutorialCompleteResponse.cs b/Networking/Responses/EncounterTutorialCompleteResponse.cs index e1f08a3..1556413 100644 --- a/Networking/Responses/EncounterTutorialCompleteResponse.cs +++ b/Networking/Responses/EncounterTutorialCompleteResponse.cs @@ -24,8 +24,8 @@ static EncounterTutorialCompleteResponseReflection() { string.Concat( "CkdQT0dPUHJvdG9zL05ldHdvcmtpbmcvUmVzcG9uc2VzL0VuY291bnRlclR1", "dG9yaWFsQ29tcGxldGVSZXNwb25zZS5wcm90bxIfUE9HT1Byb3Rvcy5OZXR3", - "b3JraW5nLlJlc3BvbnNlcxohUE9HT1Byb3Rvcy9EYXRhL1Bva2Vtb25EYXRh", - "LnByb3RvGipQT0dPUHJvdG9zL0RhdGEvQ2FwdHVyZS9DYXB0dXJlQXdhcmQu", + "b3JraW5nLlJlc3BvbnNlcxoqUE9HT1Byb3Rvcy9EYXRhL0NhcHR1cmUvQ2Fw", + "dHVyZUF3YXJkLnByb3RvGiFQT0dPUHJvdG9zL0RhdGEvUG9rZW1vbkRhdGEu", "cHJvdG8irQIKIUVuY291bnRlclR1dG9yaWFsQ29tcGxldGVSZXNwb25zZRJZ", "CgZyZXN1bHQYASABKA4ySS5QT0dPUHJvdG9zLk5ldHdvcmtpbmcuUmVzcG9u", "c2VzLkVuY291bnRlclR1dG9yaWFsQ29tcGxldGVSZXNwb25zZS5SZXN1bHQS", @@ -35,7 +35,7 @@ static EncounterTutorialCompleteResponseReflection() { "CwoHU1VDQ0VTUxABEhkKFUVSUk9SX0lOVkFMSURfUE9LRU1PThACYgZwcm90", "bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::POGOProtos.Data.PokemonDataReflection.Descriptor, global::POGOProtos.Data.Capture.CaptureAwardReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::POGOProtos.Data.Capture.CaptureAwardReflection.Descriptor, global::POGOProtos.Data.PokemonDataReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Responses.EncounterTutorialCompleteResponse), global::POGOProtos.Networking.Responses.EncounterTutorialCompleteResponse.Parser, new[]{ "Result", "PokemonData", "CaptureAward" }, null, new[]{ typeof(global::POGOProtos.Networking.Responses.EncounterTutorialCompleteResponse.Types.Result) }, null) })); diff --git a/Networking/Responses/FortDeployPokemonResponse.cs b/Networking/Responses/FortDeployPokemonResponse.cs index a1826c5..e29c8f6 100644 --- a/Networking/Responses/FortDeployPokemonResponse.cs +++ b/Networking/Responses/FortDeployPokemonResponse.cs @@ -24,8 +24,8 @@ static FortDeployPokemonResponseReflection() { string.Concat( "Cj9QT0dPUHJvdG9zL05ldHdvcmtpbmcvUmVzcG9uc2VzL0ZvcnREZXBsb3lQ", "b2tlbW9uUmVzcG9uc2UucHJvdG8SH1BPR09Qcm90b3MuTmV0d29ya2luZy5S", - "ZXNwb25zZXMaIVBPR09Qcm90b3MvRGF0YS9Qb2tlbW9uRGF0YS5wcm90bxoi", - "UE9HT1Byb3Rvcy9EYXRhL0d5bS9HeW1TdGF0ZS5wcm90bxo5UE9HT1Byb3Rv", + "ZXNwb25zZXMaIlBPR09Qcm90b3MvRGF0YS9HeW0vR3ltU3RhdGUucHJvdG8a", + "IVBPR09Qcm90b3MvRGF0YS9Qb2tlbW9uRGF0YS5wcm90bxo5UE9HT1Byb3Rv", "cy9OZXR3b3JraW5nL1Jlc3BvbnNlcy9Gb3J0RGV0YWlsc1Jlc3BvbnNlLnBy", "b3RvIsQEChlGb3J0RGVwbG95UG9rZW1vblJlc3BvbnNlElEKBnJlc3VsdBgB", "IAEoDjJBLlBPR09Qcm90b3MuTmV0d29ya2luZy5SZXNwb25zZXMuRm9ydERl", @@ -42,7 +42,7 @@ static FortDeployPokemonResponseReflection() { "T1dfTUlOSU1VTV9MRVZFTBAIEhoKFkVSUk9SX1BPS0VNT05fSVNfQlVERFkQ", "CWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::POGOProtos.Data.PokemonDataReflection.Descriptor, global::POGOProtos.Data.Gym.GymStateReflection.Descriptor, global::POGOProtos.Networking.Responses.FortDetailsResponseReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::POGOProtos.Data.Gym.GymStateReflection.Descriptor, global::POGOProtos.Data.PokemonDataReflection.Descriptor, global::POGOProtos.Networking.Responses.FortDetailsResponseReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Responses.FortDeployPokemonResponse), global::POGOProtos.Networking.Responses.FortDeployPokemonResponse.Parser, new[]{ "Result", "FortDetails", "PokemonData", "GymState" }, null, new[]{ typeof(global::POGOProtos.Networking.Responses.FortDeployPokemonResponse.Types.Result) }, null) })); diff --git a/Networking/Responses/FortDetailsResponse.cs b/Networking/Responses/FortDetailsResponse.cs index 7ca2ea9..1aee77e 100644 --- a/Networking/Responses/FortDetailsResponse.cs +++ b/Networking/Responses/FortDetailsResponse.cs @@ -25,9 +25,9 @@ static FortDetailsResponseReflection() { "CjlQT0dPUHJvdG9zL05ldHdvcmtpbmcvUmVzcG9uc2VzL0ZvcnREZXRhaWxz", "UmVzcG9uc2UucHJvdG8SH1BPR09Qcm90b3MuTmV0d29ya2luZy5SZXNwb25z", "ZXMaIVBPR09Qcm90b3MvRGF0YS9Qb2tlbW9uRGF0YS5wcm90bxogUE9HT1By", - "b3Rvcy9FbnVtcy9UZWFtQ29sb3IucHJvdG8aIlBPR09Qcm90b3MvTWFwL0Zv", - "cnQvRm9ydFR5cGUucHJvdG8aJlBPR09Qcm90b3MvTWFwL0ZvcnQvRm9ydE1v", - "ZGlmaWVyLnByb3RvIvwCChNGb3J0RGV0YWlsc1Jlc3BvbnNlEg8KB2ZvcnRf", + "b3Rvcy9FbnVtcy9UZWFtQ29sb3IucHJvdG8aJlBPR09Qcm90b3MvTWFwL0Zv", + "cnQvRm9ydE1vZGlmaWVyLnByb3RvGiJQT0dPUHJvdG9zL01hcC9Gb3J0L0Zv", + "cnRUeXBlLnByb3RvIvwCChNGb3J0RGV0YWlsc1Jlc3BvbnNlEg8KB2ZvcnRf", "aWQYASABKAkSLwoKdGVhbV9jb2xvchgCIAEoDjIbLlBPR09Qcm90b3MuRW51", "bXMuVGVhbUNvbG9yEjIKDHBva2Vtb25fZGF0YRgDIAEoCzIcLlBPR09Qcm90", "b3MuRGF0YS5Qb2tlbW9uRGF0YRIMCgRuYW1lGAQgASgJEhIKCmltYWdlX3Vy", @@ -37,7 +37,7 @@ static FortDetailsResponseReflection() { "CyABKAESEwoLZGVzY3JpcHRpb24YDCABKAkSNAoJbW9kaWZpZXJzGA0gAygL", "MiEuUE9HT1Byb3Rvcy5NYXAuRm9ydC5Gb3J0TW9kaWZpZXJiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::POGOProtos.Data.PokemonDataReflection.Descriptor, global::POGOProtos.Enums.TeamColorReflection.Descriptor, global::POGOProtos.Map.Fort.FortTypeReflection.Descriptor, global::POGOProtos.Map.Fort.FortModifierReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::POGOProtos.Data.PokemonDataReflection.Descriptor, global::POGOProtos.Enums.TeamColorReflection.Descriptor, global::POGOProtos.Map.Fort.FortModifierReflection.Descriptor, global::POGOProtos.Map.Fort.FortTypeReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Responses.FortDetailsResponse), global::POGOProtos.Networking.Responses.FortDetailsResponse.Parser, new[]{ "FortId", "TeamColor", "PokemonData", "Name", "ImageUrls", "Fp", "Stamina", "MaxStamina", "Type", "Latitude", "Longitude", "Description", "Modifiers" }, null, null, null) })); diff --git a/Networking/Responses/IncenseEncounterResponse.cs b/Networking/Responses/IncenseEncounterResponse.cs index 33d48df..8f2666f 100644 --- a/Networking/Responses/IncenseEncounterResponse.cs +++ b/Networking/Responses/IncenseEncounterResponse.cs @@ -24,8 +24,8 @@ static IncenseEncounterResponseReflection() { string.Concat( "Cj5QT0dPUHJvdG9zL05ldHdvcmtpbmcvUmVzcG9uc2VzL0luY2Vuc2VFbmNv", "dW50ZXJSZXNwb25zZS5wcm90bxIfUE9HT1Byb3Rvcy5OZXR3b3JraW5nLlJl", - "c3BvbnNlcxohUE9HT1Byb3Rvcy9EYXRhL1Bva2Vtb25EYXRhLnByb3RvGjBQ", - "T0dPUHJvdG9zL0RhdGEvQ2FwdHVyZS9DYXB0dXJlUHJvYmFiaWxpdHkucHJv", + "c3BvbnNlcxowUE9HT1Byb3Rvcy9EYXRhL0NhcHR1cmUvQ2FwdHVyZVByb2Jh", + "YmlsaXR5LnByb3RvGiFQT0dPUHJvdG9zL0RhdGEvUG9rZW1vbkRhdGEucHJv", "dG8i9AIKGEluY2Vuc2VFbmNvdW50ZXJSZXNwb25zZRJQCgZyZXN1bHQYASAB", "KA4yQC5QT0dPUHJvdG9zLk5ldHdvcmtpbmcuUmVzcG9uc2VzLkluY2Vuc2VF", "bmNvdW50ZXJSZXNwb25zZS5SZXN1bHQSMgoMcG9rZW1vbl9kYXRhGAIgASgL", @@ -36,7 +36,7 @@ static IncenseEncounterResponseReflection() { "H0lOQ0VOU0VfRU5DT1VOVEVSX05PVF9BVkFJTEFCTEUQAhIaChZQT0tFTU9O", "X0lOVkVOVE9SWV9GVUxMEANiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::POGOProtos.Data.PokemonDataReflection.Descriptor, global::POGOProtos.Data.Capture.CaptureProbabilityReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::POGOProtos.Data.Capture.CaptureProbabilityReflection.Descriptor, global::POGOProtos.Data.PokemonDataReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Responses.IncenseEncounterResponse), global::POGOProtos.Networking.Responses.IncenseEncounterResponse.Parser, new[]{ "Result", "PokemonData", "CaptureProbability" }, null, new[]{ typeof(global::POGOProtos.Networking.Responses.IncenseEncounterResponse.Types.Result) }, null) })); diff --git a/Networking/Responses/LevelUpRewardsResponse.cs b/Networking/Responses/LevelUpRewardsResponse.cs index 3a1e6c1..4728eef 100644 --- a/Networking/Responses/LevelUpRewardsResponse.cs +++ b/Networking/Responses/LevelUpRewardsResponse.cs @@ -24,8 +24,8 @@ static LevelUpRewardsResponseReflection() { string.Concat( "CjxQT0dPUHJvdG9zL05ldHdvcmtpbmcvUmVzcG9uc2VzL0xldmVsVXBSZXdh", "cmRzUmVzcG9uc2UucHJvdG8SH1BPR09Qcm90b3MuTmV0d29ya2luZy5SZXNw", - "b25zZXMaJlBPR09Qcm90b3MvSW52ZW50b3J5L0l0ZW0vSXRlbUlkLnByb3Rv", - "GilQT0dPUHJvdG9zL0ludmVudG9yeS9JdGVtL0l0ZW1Bd2FyZC5wcm90byKX", + "b25zZXMaKVBPR09Qcm90b3MvSW52ZW50b3J5L0l0ZW0vSXRlbUF3YXJkLnBy", + "b3RvGiZQT0dPUHJvdG9zL0ludmVudG9yeS9JdGVtL0l0ZW1JZC5wcm90byKX", "AgoWTGV2ZWxVcFJld2FyZHNSZXNwb25zZRJOCgZyZXN1bHQYASABKA4yPi5Q", "T0dPUHJvdG9zLk5ldHdvcmtpbmcuUmVzcG9uc2VzLkxldmVsVXBSZXdhcmRz", "UmVzcG9uc2UuUmVzdWx0EjsKDWl0ZW1zX2F3YXJkZWQYAiADKAsyJC5QT0dP", @@ -34,7 +34,7 @@ static LevelUpRewardsResponseReflection() { "IjUKBlJlc3VsdBIJCgVVTlNFVBAAEgsKB1NVQ0NFU1MQARITCg9BV0FSREVE", "X0FMUkVBRFkQAmIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { global::POGOProtos.Inventory.Item.ItemIdReflection.Descriptor, global::POGOProtos.Inventory.Item.ItemAwardReflection.Descriptor, }, + new pbr::FileDescriptor[] { global::POGOProtos.Inventory.Item.ItemAwardReflection.Descriptor, global::POGOProtos.Inventory.Item.ItemIdReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Responses.LevelUpRewardsResponse), global::POGOProtos.Networking.Responses.LevelUpRewardsResponse.Parser, new[]{ "Result", "ItemsAwarded", "ItemsUnlocked" }, null, new[]{ typeof(global::POGOProtos.Networking.Responses.LevelUpRewardsResponse.Types.Result) }, null) })); diff --git a/Networking/Signature.cs b/Networking/Signature.cs deleted file mode 100644 index 2996fb8..0000000 --- a/Networking/Signature.cs +++ /dev/null @@ -1,3072 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: POGOProtos/Networking/Signature.proto -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace POGOProtos.Networking -{ - /// Holder for reflection information generated from POGOProtos/Networking/Signature.proto - public static partial class SignatureReflection - { - - #region Descriptor - /// File descriptor for POGOProtos/Networking/Signature.proto - public static pbr::FileDescriptor Descriptor - { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static SignatureReflection() - { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CiVQT0dPUHJvdG9zL05ldHdvcmtpbmcvU2lnbmF0dXJlLnByb3RvIvYNCglT", - "aWduYXR1cmUSHQoVdGltZXN0YW1wX3NpbmNlX3N0YXJ0GAIgASgEEiwKDGxv", - "Y2F0aW9uX2ZpeBgEIAMoCzIWLlNpZ25hdHVyZS5Mb2NhdGlvbkZpeBIrCghn", - "cHNfaW5mbxgFIAEoCzIZLlNpZ25hdHVyZS5BbmRyb2lkR3BzSW5mbxIqCgtz", - "ZW5zb3JfaW5mbxgHIAEoCzIVLlNpZ25hdHVyZS5TZW5zb3JJbmZvEioKC2Rl", - "dmljZV9pbmZvGAggASgLMhUuU2lnbmF0dXJlLkRldmljZUluZm8SMgoPYWN0", - "aXZpdHlfc3RhdHVzGAkgASgLMhkuU2lnbmF0dXJlLkFjdGl2aXR5U3RhdHVz", - "EhYKDmxvY2F0aW9uX2hhc2gxGAogASgNEhYKDmxvY2F0aW9uX2hhc2gyGBQg", - "ASgNEg0KBXVuazIyGBYgASgMEhEKCXRpbWVzdGFtcBgXIAEoBBIUCgxyZXF1", - "ZXN0X2hhc2gYGCADKAQa7AEKC0xvY2F0aW9uRml4EhAKCHByb3ZpZGVyGAEg", - "ASgJEh0KFXRpbWVzdGFtcF9zaW5jZV9zdGFydBgCIAEoBBIQCghsYXRpdHVk", - "ZRgNIAEoAhIRCglsb25naXR1ZGUYDiABKAISGwoTaG9yaXpvbnRhbF9hY2N1", - "cmFjeRgUIAEoAhIQCghhbHRpdHVkZRgVIAEoAhIZChF2ZXJ0aWNhbF9hY2N1", - "cmFjeRgWIAEoAhIXCg9wcm92aWRlcl9zdGF0dXMYGiABKAQSDQoFZmxvb3IY", - "GyABKA0SFQoNbG9jYXRpb25fdHlwZRgcIAEoBBqvAQoOQW5kcm9pZEdwc0lu", - "Zm8SEwoLdGltZV90b19maXgYASABKAQSFgoOc2F0ZWxsaXRlc19wcm4YAiAD", - "KAUSCwoDc25yGAMgAygCEg8KB2F6aW11dGgYBCADKAISEQoJZWxldmF0aW9u", - "GAUgAygCEhMKC2hhc19hbG1hbmFjGAYgAygIEhUKDWhhc19lcGhlbWVyaXMY", - "ByADKAgSEwoLdXNlZF9pbl9maXgYCCADKAgavgMKClNlbnNvckluZm8SGgoS", - "dGltZXN0YW1wX3NuYXBzaG90GAEgASgEEhYKDm1hZ25ldG9tZXRlcl94GAMg", - "ASgBEhYKDm1hZ25ldG9tZXRlcl95GAQgASgBEhYKDm1hZ25ldG9tZXRlcl96", - "GAUgASgBEhoKEmFuZ2xlX25vcm1hbGl6ZWRfeBgGIAEoARIaChJhbmdsZV9u", - "b3JtYWxpemVkX3kYByABKAESGgoSYW5nbGVfbm9ybWFsaXplZF96GAggASgB", - "EhMKC2FjY2VsX3Jhd194GAogASgBEhMKC2FjY2VsX3Jhd195GAsgASgBEhMK", - "C2FjY2VsX3Jhd196GAwgASgBEhcKD2d5cm9zY29wZV9yYXdfeBgNIAEoARIX", - "Cg9neXJvc2NvcGVfcmF3X3kYDiABKAESFwoPZ3lyb3Njb3BlX3Jhd196GA8g", - "ASgBEhoKEmFjY2VsX25vcm1hbGl6ZWRfeBgQIAEoARIaChJhY2NlbF9ub3Jt", - "YWxpemVkX3kYESABKAESGgoSYWNjZWxfbm9ybWFsaXplZF96GBIgASgBEhoK", - "EmFjY2VsZXJvbWV0ZXJfYXhlcxgTIAEoBBraAgoKRGV2aWNlSW5mbxIRCglk", - "ZXZpY2VfaWQYASABKAkSGgoSYW5kcm9pZF9ib2FyZF9uYW1lGAIgASgJEhoK", - "EmFuZHJvaWRfYm9vdGxvYWRlchgDIAEoCRIUCgxkZXZpY2VfYnJhbmQYBCAB", - "KAkSFAoMZGV2aWNlX21vZGVsGAUgASgJEh8KF2RldmljZV9tb2RlbF9pZGVu", - "dGlmaWVyGAYgASgJEhkKEWRldmljZV9tb2RlbF9ib290GAcgASgJEh0KFWhh", - "cmR3YXJlX21hbnVmYWN0dXJlchgIIAEoCRIWCg5oYXJkd2FyZV9tb2RlbBgJ", - "IAEoCRIWCg5maXJtd2FyZV9icmFuZBgKIAEoCRIVCg1maXJtd2FyZV90YWdz", - "GAwgASgJEhUKDWZpcm13YXJlX3R5cGUYDSABKAkSHAoUZmlybXdhcmVfZmlu", - "Z2VycHJpbnQYDiABKAkauwEKDkFjdGl2aXR5U3RhdHVzEhUKDXN0YXJ0X3Rp", - "bWVfbXMYASABKAQSFgoOdW5rbm93bl9zdGF0dXMYAiABKAgSDwoHd2Fsa2lu", - "ZxgDIAEoCBIPCgdydW5uaW5nGAQgASgIEhIKCnN0YXRpb25hcnkYBSABKAgS", - "EgoKYXV0b21vdGl2ZRgGIAEoCBIPCgd0aWx0aW5nGAcgASgIEg8KB2N5Y2xp", - "bmcYCCABKAgSDgoGc3RhdHVzGAkgASgMYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Signature), global::POGOProtos.Networking.Signature.Parser, new[]{ "TimestampSinceStart", "LocationFix", "GpsInfo", "SensorInfo", "DeviceInfo", "ActivityStatus", "LocationHash1", "LocationHash2", "Unk22", "Timestamp", "RequestHash" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Signature.Types.LocationFix), global::POGOProtos.Networking.Signature.Types.LocationFix.Parser, new[]{ "Provider", "TimestampSinceStart", "Latitude", "Longitude", "HorizontalAccuracy", "Altitude", "VerticalAccuracy", "ProviderStatus", "Floor", "LocationType" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Signature.Types.AndroidGpsInfo), global::POGOProtos.Networking.Signature.Types.AndroidGpsInfo.Parser, new[]{ "TimeToFix", "SatellitesPrn", "Snr", "Azimuth", "Elevation", "HasAlmanac", "HasEphemeris", "UsedInFix" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Signature.Types.SensorInfo), global::POGOProtos.Networking.Signature.Types.SensorInfo.Parser, new[]{ "TimestampSnapshot", "MagnetometerX", "MagnetometerY", "MagnetometerZ", "AngleNormalizedX", "AngleNormalizedY", "AngleNormalizedZ", "AccelRawX", "AccelRawY", "AccelRawZ", "GyroscopeRawX", "GyroscopeRawY", "GyroscopeRawZ", "AccelNormalizedX", "AccelNormalizedY", "AccelNormalizedZ", "AccelerometerAxes" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Signature.Types.DeviceInfo), global::POGOProtos.Networking.Signature.Types.DeviceInfo.Parser, new[]{ "DeviceId", "AndroidBoardName", "AndroidBootloader", "DeviceBrand", "DeviceModel", "DeviceModelIdentifier", "DeviceModelBoot", "HardwareManufacturer", "HardwareModel", "FirmwareBrand", "FirmwareTags", "FirmwareType", "FirmwareFingerprint" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Signature.Types.ActivityStatus), global::POGOProtos.Networking.Signature.Types.ActivityStatus.Parser, new[]{ "StartTimeMs", "UnknownStatus", "Walking", "Running", "Stationary", "Automotive", "Tilting", "Cycling", "Status" }, null, null, null)}) - })); - } - #endregion - - } - #region Messages - public sealed partial class Signature : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Signature()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor - { - get { return global::POGOProtos.Networking.SignatureReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Signature() - { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Signature(Signature other) : this() - { - timestampSinceStart_ = other.timestampSinceStart_; - locationFix_ = other.locationFix_.Clone(); - GpsInfo = other.gpsInfo_ != null ? other.GpsInfo.Clone() : null; - SensorInfo = other.sensorInfo_ != null ? other.SensorInfo.Clone() : null; - DeviceInfo = other.deviceInfo_ != null ? other.DeviceInfo.Clone() : null; - ActivityStatus = other.activityStatus_ != null ? other.ActivityStatus.Clone() : null; - locationHash1_ = other.locationHash1_; - locationHash2_ = other.locationHash2_; - unk22_ = other.unk22_; - timestamp_ = other.timestamp_; - requestHash_ = other.requestHash_.Clone(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Signature Clone() - { - return new Signature(this); - } - - /// Field number for the "timestamp_since_start" field. - public const int TimestampSinceStartFieldNumber = 2; - private ulong timestampSinceStart_; - /// - /// in ms - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong TimestampSinceStart - { - get { return timestampSinceStart_; } - set - { - timestampSinceStart_ = value; - } - } - - /// Field number for the "location_fix" field. - public const int LocationFixFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_locationFix_codec - = pb::FieldCodec.ForMessage(34, global::POGOProtos.Networking.Signature.Types.LocationFix.Parser); - private readonly pbc::RepeatedField locationFix_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField LocationFix - { - get { return locationFix_; } - } - - /// Field number for the "gps_info" field. - public const int GpsInfoFieldNumber = 5; - private global::POGOProtos.Networking.Signature.Types.AndroidGpsInfo gpsInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Networking.Signature.Types.AndroidGpsInfo GpsInfo - { - get { return gpsInfo_; } - set - { - gpsInfo_ = value; - } - } - - /// Field number for the "sensor_info" field. - public const int SensorInfoFieldNumber = 7; - private global::POGOProtos.Networking.Signature.Types.SensorInfo sensorInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Networking.Signature.Types.SensorInfo SensorInfo - { - get { return sensorInfo_; } - set - { - sensorInfo_ = value; - } - } - - /// Field number for the "device_info" field. - public const int DeviceInfoFieldNumber = 8; - private global::POGOProtos.Networking.Signature.Types.DeviceInfo deviceInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Networking.Signature.Types.DeviceInfo DeviceInfo - { - get { return deviceInfo_; } - set - { - deviceInfo_ = value; - } - } - - /// Field number for the "activity_status" field. - public const int ActivityStatusFieldNumber = 9; - private global::POGOProtos.Networking.Signature.Types.ActivityStatus activityStatus_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Networking.Signature.Types.ActivityStatus ActivityStatus - { - get { return activityStatus_; } - set - { - activityStatus_ = value; - } - } - - /// Field number for the "location_hash1" field. - public const int LocationHash1FieldNumber = 10; - private uint locationHash1_; - /// - /// Location1 hashed based on the auth_token - xxHash32 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public uint LocationHash1 - { - get { return locationHash1_; } - set - { - locationHash1_ = value; - } - } - - /// Field number for the "location_hash2" field. - public const int LocationHash2FieldNumber = 20; - private uint locationHash2_; - /// - /// Location2 hashed based on the auth_token - xxHash32 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public uint LocationHash2 - { - get { return locationHash2_; } - set - { - locationHash2_ = value; - } - } - - /// Field number for the "unk22" field. - public const int Unk22FieldNumber = 22; - private pb::ByteString unk22_ = pb::ByteString.Empty; - /// - /// possibly replay check. Generation unknown but pointed to by 0001B8614 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pb::ByteString Unk22 - { - get { return unk22_; } - set - { - unk22_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "timestamp" field. - public const int TimestampFieldNumber = 23; - private ulong timestamp_; - /// - /// epoch timestamp in ms - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong Timestamp - { - get { return timestamp_; } - set - { - timestamp_ = value; - } - } - - /// Field number for the "request_hash" field. - public const int RequestHashFieldNumber = 24; - private static readonly pb::FieldCodec _repeated_requestHash_codec - = pb::FieldCodec.ForUInt64(194); - private readonly pbc::RepeatedField requestHash_ = new pbc::RepeatedField(); - /// - /// hashes of each request message in a hashArray - xxhash64 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField RequestHash - { - get { return requestHash_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) - { - return Equals(other as Signature); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Signature other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (TimestampSinceStart != other.TimestampSinceStart) return false; - if (!locationFix_.Equals(other.locationFix_)) return false; - if (!object.Equals(GpsInfo, other.GpsInfo)) return false; - if (!object.Equals(SensorInfo, other.SensorInfo)) return false; - if (!object.Equals(DeviceInfo, other.DeviceInfo)) return false; - if (!object.Equals(ActivityStatus, other.ActivityStatus)) return false; - if (LocationHash1 != other.LocationHash1) return false; - if (LocationHash2 != other.LocationHash2) return false; - if (Unk22 != other.Unk22) return false; - if (Timestamp != other.Timestamp) return false; - if (!requestHash_.Equals(other.requestHash_)) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() - { - int hash = 1; - if (TimestampSinceStart != 0UL) hash ^= TimestampSinceStart.GetHashCode(); - hash ^= locationFix_.GetHashCode(); - if (gpsInfo_ != null) hash ^= GpsInfo.GetHashCode(); - if (sensorInfo_ != null) hash ^= SensorInfo.GetHashCode(); - if (deviceInfo_ != null) hash ^= DeviceInfo.GetHashCode(); - if (activityStatus_ != null) hash ^= ActivityStatus.GetHashCode(); - if (LocationHash1 != 0) hash ^= LocationHash1.GetHashCode(); - if (LocationHash2 != 0) hash ^= LocationHash2.GetHashCode(); - if (Unk22.Length != 0) hash ^= Unk22.GetHashCode(); - if (Timestamp != 0UL) hash ^= Timestamp.GetHashCode(); - hash ^= requestHash_.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) - { - if (TimestampSinceStart != 0UL) - { - output.WriteRawTag(16); - output.WriteUInt64(TimestampSinceStart); - } - locationFix_.WriteTo(output, _repeated_locationFix_codec); - if (gpsInfo_ != null) - { - output.WriteRawTag(42); - output.WriteMessage(GpsInfo); - } - if (sensorInfo_ != null) - { - output.WriteRawTag(58); - output.WriteMessage(SensorInfo); - } - if (deviceInfo_ != null) - { - output.WriteRawTag(66); - output.WriteMessage(DeviceInfo); - } - if (activityStatus_ != null) - { - output.WriteRawTag(74); - output.WriteMessage(ActivityStatus); - } - if (LocationHash1 != 0) - { - output.WriteRawTag(80); - output.WriteUInt32(LocationHash1); - } - if (LocationHash2 != 0) - { - output.WriteRawTag(160, 1); - output.WriteUInt32(LocationHash2); - } - if (Unk22.Length != 0) - { - output.WriteRawTag(178, 1); - output.WriteBytes(Unk22); - } - if (Timestamp != 0UL) - { - output.WriteRawTag(184, 1); - output.WriteUInt64(Timestamp); - } - requestHash_.WriteTo(output, _repeated_requestHash_codec); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() - { - int size = 0; - if (TimestampSinceStart != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TimestampSinceStart); - } - size += locationFix_.CalculateSize(_repeated_locationFix_codec); - if (gpsInfo_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(GpsInfo); - } - if (sensorInfo_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SensorInfo); - } - if (deviceInfo_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceInfo); - } - if (activityStatus_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(ActivityStatus); - } - if (LocationHash1 != 0) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LocationHash1); - } - if (LocationHash2 != 0) - { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(LocationHash2); - } - if (Unk22.Length != 0) - { - size += 2 + pb::CodedOutputStream.ComputeBytesSize(Unk22); - } - if (Timestamp != 0UL) - { - size += 2 + pb::CodedOutputStream.ComputeUInt64Size(Timestamp); - } - size += requestHash_.CalculateSize(_repeated_requestHash_codec); - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Signature other) - { - if (other == null) - { - return; - } - if (other.TimestampSinceStart != 0UL) - { - TimestampSinceStart = other.TimestampSinceStart; - } - locationFix_.Add(other.locationFix_); - if (other.gpsInfo_ != null) - { - if (gpsInfo_ == null) - { - gpsInfo_ = new global::POGOProtos.Networking.Signature.Types.AndroidGpsInfo(); - } - GpsInfo.MergeFrom(other.GpsInfo); - } - if (other.sensorInfo_ != null) - { - if (sensorInfo_ == null) - { - sensorInfo_ = new global::POGOProtos.Networking.Signature.Types.SensorInfo(); - } - SensorInfo.MergeFrom(other.SensorInfo); - } - if (other.deviceInfo_ != null) - { - if (deviceInfo_ == null) - { - deviceInfo_ = new global::POGOProtos.Networking.Signature.Types.DeviceInfo(); - } - DeviceInfo.MergeFrom(other.DeviceInfo); - } - if (other.activityStatus_ != null) - { - if (activityStatus_ == null) - { - activityStatus_ = new global::POGOProtos.Networking.Signature.Types.ActivityStatus(); - } - ActivityStatus.MergeFrom(other.ActivityStatus); - } - if (other.LocationHash1 != 0) - { - LocationHash1 = other.LocationHash1; - } - if (other.LocationHash2 != 0) - { - LocationHash2 = other.LocationHash2; - } - if (other.Unk22.Length != 0) - { - Unk22 = other.Unk22; - } - if (other.Timestamp != 0UL) - { - Timestamp = other.Timestamp; - } - requestHash_.Add(other.requestHash_); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 16: - { - TimestampSinceStart = input.ReadUInt64(); - break; - } - case 34: - { - locationFix_.AddEntriesFrom(input, _repeated_locationFix_codec); - break; - } - case 42: - { - if (gpsInfo_ == null) - { - gpsInfo_ = new global::POGOProtos.Networking.Signature.Types.AndroidGpsInfo(); - } - input.ReadMessage(gpsInfo_); - break; - } - case 58: - { - if (sensorInfo_ == null) - { - sensorInfo_ = new global::POGOProtos.Networking.Signature.Types.SensorInfo(); - } - input.ReadMessage(sensorInfo_); - break; - } - case 66: - { - if (deviceInfo_ == null) - { - deviceInfo_ = new global::POGOProtos.Networking.Signature.Types.DeviceInfo(); - } - input.ReadMessage(deviceInfo_); - break; - } - case 74: - { - if (activityStatus_ == null) - { - activityStatus_ = new global::POGOProtos.Networking.Signature.Types.ActivityStatus(); - } - input.ReadMessage(activityStatus_); - break; - } - case 80: - { - LocationHash1 = input.ReadUInt32(); - break; - } - case 160: - { - LocationHash2 = input.ReadUInt32(); - break; - } - case 178: - { - Unk22 = input.ReadBytes(); - break; - } - case 184: - { - Timestamp = input.ReadUInt64(); - break; - } - case 194: - case 192: - { - requestHash_.AddEntriesFrom(input, _repeated_requestHash_codec); - break; - } - } - } - } - - #region Nested types - /// Container for nested types declared in the Signature message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static partial class Types - { - public sealed partial class LocationFix : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocationFix()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor - { - get { return global::POGOProtos.Networking.Signature.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public LocationFix() - { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public LocationFix(LocationFix other) : this() - { - provider_ = other.provider_; - timestampSinceStart_ = other.timestampSinceStart_; - latitude_ = other.latitude_; - longitude_ = other.longitude_; - horizontalAccuracy_ = other.horizontalAccuracy_; - altitude_ = other.altitude_; - verticalAccuracy_ = other.verticalAccuracy_; - providerStatus_ = other.providerStatus_; - floor_ = other.floor_; - locationType_ = other.locationType_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public LocationFix Clone() - { - return new LocationFix(this); - } - - /// Field number for the "provider" field. - public const int ProviderFieldNumber = 1; - private string provider_ = ""; - /// - /// "network", "gps", "fused", possibly others - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Provider - { - get { return provider_; } - set - { - provider_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "timestamp_since_start" field. - public const int TimestampSinceStartFieldNumber = 2; - private ulong timestampSinceStart_; - /// - /// in ms - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong TimestampSinceStart - { - get { return timestampSinceStart_; } - set - { - timestampSinceStart_ = value; - } - } - - /// Field number for the "latitude" field. - public const int LatitudeFieldNumber = 13; - private float latitude_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public float Latitude - { - get { return latitude_; } - set - { - latitude_ = value; - } - } - - /// Field number for the "longitude" field. - public const int LongitudeFieldNumber = 14; - private float longitude_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public float Longitude - { - get { return longitude_; } - set - { - longitude_ = value; - } - } - - /// Field number for the "horizontal_accuracy" field. - public const int HorizontalAccuracyFieldNumber = 20; - private float horizontalAccuracy_; - /// - /// ??? shows up in struct, dunno where these go - /// float device_speed; - /// float device_course; - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public float HorizontalAccuracy - { - get { return horizontalAccuracy_; } - set - { - horizontalAccuracy_ = value; - } - } - - /// Field number for the "altitude" field. - public const int AltitudeFieldNumber = 21; - private float altitude_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public float Altitude - { - get { return altitude_; } - set - { - altitude_ = value; - } - } - - /// Field number for the "vertical_accuracy" field. - public const int VerticalAccuracyFieldNumber = 22; - private float verticalAccuracy_; - /// - /// iOS only? (range seems to be ~10-12) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public float VerticalAccuracy - { - get { return verticalAccuracy_; } - set - { - verticalAccuracy_ = value; - } - } - - /// Field number for the "provider_status" field. - public const int ProviderStatusFieldNumber = 26; - private ulong providerStatus_; - /// - /// Usually 3 (possibly GPS status: 1 = no fix, 2 = acquiring/inaccurate, 3 = fix acquired) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong ProviderStatus - { - get { return providerStatus_; } - set - { - providerStatus_ = value; - } - } - - /// Field number for the "floor" field. - public const int FloorFieldNumber = 27; - private uint floor_; - /// - /// On iOS there are some LocationFixes with unk26=1 and everything else empty - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public uint Floor - { - get { return floor_; } - set - { - floor_ = value; - } - } - - /// Field number for the "location_type" field. - public const int LocationTypeFieldNumber = 28; - private ulong locationType_; - /// - /// Always 1 (if there is data at all) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong LocationType - { - get { return locationType_; } - set - { - locationType_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) - { - return Equals(other as LocationFix); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(LocationFix other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Provider != other.Provider) return false; - if (TimestampSinceStart != other.TimestampSinceStart) return false; - if (Latitude != other.Latitude) return false; - if (Longitude != other.Longitude) return false; - if (HorizontalAccuracy != other.HorizontalAccuracy) return false; - if (Altitude != other.Altitude) return false; - if (VerticalAccuracy != other.VerticalAccuracy) return false; - if (ProviderStatus != other.ProviderStatus) return false; - if (Floor != other.Floor) return false; - if (LocationType != other.LocationType) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() - { - int hash = 1; - if (Provider.Length != 0) hash ^= Provider.GetHashCode(); - if (TimestampSinceStart != 0UL) hash ^= TimestampSinceStart.GetHashCode(); - if (Latitude != 0F) hash ^= Latitude.GetHashCode(); - if (Longitude != 0F) hash ^= Longitude.GetHashCode(); - if (HorizontalAccuracy != 0F) hash ^= HorizontalAccuracy.GetHashCode(); - if (Altitude != 0F) hash ^= Altitude.GetHashCode(); - if (VerticalAccuracy != 0F) hash ^= VerticalAccuracy.GetHashCode(); - if (ProviderStatus != 0UL) hash ^= ProviderStatus.GetHashCode(); - if (Floor != 0) hash ^= Floor.GetHashCode(); - if (LocationType != 0UL) hash ^= LocationType.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) - { - if (Provider.Length != 0) - { - output.WriteRawTag(10); - output.WriteString(Provider); - } - if (TimestampSinceStart != 0UL) - { - output.WriteRawTag(16); - output.WriteUInt64(TimestampSinceStart); - } - if (Latitude != 0F) - { - output.WriteRawTag(109); - output.WriteFloat(Latitude); - } - if (Longitude != 0F) - { - output.WriteRawTag(117); - output.WriteFloat(Longitude); - } - if (HorizontalAccuracy != 0F) - { - output.WriteRawTag(165, 1); - output.WriteFloat(HorizontalAccuracy); - } - if (Altitude != 0F) - { - output.WriteRawTag(173, 1); - output.WriteFloat(Altitude); - } - if (VerticalAccuracy != 0F) - { - output.WriteRawTag(181, 1); - output.WriteFloat(VerticalAccuracy); - } - if (ProviderStatus != 0UL) - { - output.WriteRawTag(208, 1); - output.WriteUInt64(ProviderStatus); - } - if (Floor != 0) - { - output.WriteRawTag(216, 1); - output.WriteUInt32(Floor); - } - if (LocationType != 0UL) - { - output.WriteRawTag(224, 1); - output.WriteUInt64(LocationType); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() - { - int size = 0; - if (Provider.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Provider); - } - if (TimestampSinceStart != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TimestampSinceStart); - } - if (Latitude != 0F) - { - size += 1 + 4; - } - if (Longitude != 0F) - { - size += 1 + 4; - } - if (HorizontalAccuracy != 0F) - { - size += 2 + 4; - } - if (Altitude != 0F) - { - size += 2 + 4; - } - if (VerticalAccuracy != 0F) - { - size += 2 + 4; - } - if (ProviderStatus != 0UL) - { - size += 2 + pb::CodedOutputStream.ComputeUInt64Size(ProviderStatus); - } - if (Floor != 0) - { - size += 2 + pb::CodedOutputStream.ComputeUInt32Size(Floor); - } - if (LocationType != 0UL) - { - size += 2 + pb::CodedOutputStream.ComputeUInt64Size(LocationType); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(LocationFix other) - { - if (other == null) - { - return; - } - if (other.Provider.Length != 0) - { - Provider = other.Provider; - } - if (other.TimestampSinceStart != 0UL) - { - TimestampSinceStart = other.TimestampSinceStart; - } - if (other.Latitude != 0F) - { - Latitude = other.Latitude; - } - if (other.Longitude != 0F) - { - Longitude = other.Longitude; - } - if (other.HorizontalAccuracy != 0F) - { - HorizontalAccuracy = other.HorizontalAccuracy; - } - if (other.Altitude != 0F) - { - Altitude = other.Altitude; - } - if (other.VerticalAccuracy != 0F) - { - VerticalAccuracy = other.VerticalAccuracy; - } - if (other.ProviderStatus != 0UL) - { - ProviderStatus = other.ProviderStatus; - } - if (other.Floor != 0) - { - Floor = other.Floor; - } - if (other.LocationType != 0UL) - { - LocationType = other.LocationType; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - Provider = input.ReadString(); - break; - } - case 16: - { - TimestampSinceStart = input.ReadUInt64(); - break; - } - case 109: - { - Latitude = input.ReadFloat(); - break; - } - case 117: - { - Longitude = input.ReadFloat(); - break; - } - case 165: - { - HorizontalAccuracy = input.ReadFloat(); - break; - } - case 173: - { - Altitude = input.ReadFloat(); - break; - } - case 181: - { - VerticalAccuracy = input.ReadFloat(); - break; - } - case 208: - { - ProviderStatus = input.ReadUInt64(); - break; - } - case 216: - { - Floor = input.ReadUInt32(); - break; - } - case 224: - { - LocationType = input.ReadUInt64(); - break; - } - } - } - } - - } - - /// - /// don't really care about this since we're not using it - /// - public sealed partial class AndroidGpsInfo : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AndroidGpsInfo()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor - { - get { return global::POGOProtos.Networking.Signature.Descriptor.NestedTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public AndroidGpsInfo() - { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public AndroidGpsInfo(AndroidGpsInfo other) : this() - { - timeToFix_ = other.timeToFix_; - satellitesPrn_ = other.satellitesPrn_.Clone(); - snr_ = other.snr_.Clone(); - azimuth_ = other.azimuth_.Clone(); - elevation_ = other.elevation_.Clone(); - hasAlmanac_ = other.hasAlmanac_.Clone(); - hasEphemeris_ = other.hasEphemeris_.Clone(); - usedInFix_ = other.usedInFix_.Clone(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public AndroidGpsInfo Clone() - { - return new AndroidGpsInfo(this); - } - - /// Field number for the "time_to_fix" field. - public const int TimeToFixFieldNumber = 1; - private ulong timeToFix_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong TimeToFix - { - get { return timeToFix_; } - set - { - timeToFix_ = value; - } - } - - /// Field number for the "satellites_prn" field. - public const int SatellitesPrnFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_satellitesPrn_codec - = pb::FieldCodec.ForInt32(18); - private readonly pbc::RepeatedField satellitesPrn_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField SatellitesPrn - { - get { return satellitesPrn_; } - } - - /// Field number for the "snr" field. - public const int SnrFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_snr_codec - = pb::FieldCodec.ForFloat(26); - private readonly pbc::RepeatedField snr_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Snr - { - get { return snr_; } - } - - /// Field number for the "azimuth" field. - public const int AzimuthFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_azimuth_codec - = pb::FieldCodec.ForFloat(34); - private readonly pbc::RepeatedField azimuth_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Azimuth - { - get { return azimuth_; } - } - - /// Field number for the "elevation" field. - public const int ElevationFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_elevation_codec - = pb::FieldCodec.ForFloat(42); - private readonly pbc::RepeatedField elevation_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Elevation - { - get { return elevation_; } - } - - /// Field number for the "has_almanac" field. - public const int HasAlmanacFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_hasAlmanac_codec - = pb::FieldCodec.ForBool(50); - private readonly pbc::RepeatedField hasAlmanac_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField HasAlmanac - { - get { return hasAlmanac_; } - } - - /// Field number for the "has_ephemeris" field. - public const int HasEphemerisFieldNumber = 7; - private static readonly pb::FieldCodec _repeated_hasEphemeris_codec - = pb::FieldCodec.ForBool(58); - private readonly pbc::RepeatedField hasEphemeris_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField HasEphemeris - { - get { return hasEphemeris_; } - } - - /// Field number for the "used_in_fix" field. - public const int UsedInFixFieldNumber = 8; - private static readonly pb::FieldCodec _repeated_usedInFix_codec - = pb::FieldCodec.ForBool(66); - private readonly pbc::RepeatedField usedInFix_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField UsedInFix - { - get { return usedInFix_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) - { - return Equals(other as AndroidGpsInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(AndroidGpsInfo other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (TimeToFix != other.TimeToFix) return false; - if (!satellitesPrn_.Equals(other.satellitesPrn_)) return false; - if (!snr_.Equals(other.snr_)) return false; - if (!azimuth_.Equals(other.azimuth_)) return false; - if (!elevation_.Equals(other.elevation_)) return false; - if (!hasAlmanac_.Equals(other.hasAlmanac_)) return false; - if (!hasEphemeris_.Equals(other.hasEphemeris_)) return false; - if (!usedInFix_.Equals(other.usedInFix_)) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() - { - int hash = 1; - if (TimeToFix != 0UL) hash ^= TimeToFix.GetHashCode(); - hash ^= satellitesPrn_.GetHashCode(); - hash ^= snr_.GetHashCode(); - hash ^= azimuth_.GetHashCode(); - hash ^= elevation_.GetHashCode(); - hash ^= hasAlmanac_.GetHashCode(); - hash ^= hasEphemeris_.GetHashCode(); - hash ^= usedInFix_.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) - { - if (TimeToFix != 0UL) - { - output.WriteRawTag(8); - output.WriteUInt64(TimeToFix); - } - satellitesPrn_.WriteTo(output, _repeated_satellitesPrn_codec); - snr_.WriteTo(output, _repeated_snr_codec); - azimuth_.WriteTo(output, _repeated_azimuth_codec); - elevation_.WriteTo(output, _repeated_elevation_codec); - hasAlmanac_.WriteTo(output, _repeated_hasAlmanac_codec); - hasEphemeris_.WriteTo(output, _repeated_hasEphemeris_codec); - usedInFix_.WriteTo(output, _repeated_usedInFix_codec); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() - { - int size = 0; - if (TimeToFix != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TimeToFix); - } - size += satellitesPrn_.CalculateSize(_repeated_satellitesPrn_codec); - size += snr_.CalculateSize(_repeated_snr_codec); - size += azimuth_.CalculateSize(_repeated_azimuth_codec); - size += elevation_.CalculateSize(_repeated_elevation_codec); - size += hasAlmanac_.CalculateSize(_repeated_hasAlmanac_codec); - size += hasEphemeris_.CalculateSize(_repeated_hasEphemeris_codec); - size += usedInFix_.CalculateSize(_repeated_usedInFix_codec); - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(AndroidGpsInfo other) - { - if (other == null) - { - return; - } - if (other.TimeToFix != 0UL) - { - TimeToFix = other.TimeToFix; - } - satellitesPrn_.Add(other.satellitesPrn_); - snr_.Add(other.snr_); - azimuth_.Add(other.azimuth_); - elevation_.Add(other.elevation_); - hasAlmanac_.Add(other.hasAlmanac_); - hasEphemeris_.Add(other.hasEphemeris_); - usedInFix_.Add(other.usedInFix_); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - TimeToFix = input.ReadUInt64(); - break; - } - case 18: - case 16: - { - satellitesPrn_.AddEntriesFrom(input, _repeated_satellitesPrn_codec); - break; - } - case 26: - case 29: - { - snr_.AddEntriesFrom(input, _repeated_snr_codec); - break; - } - case 34: - case 37: - { - azimuth_.AddEntriesFrom(input, _repeated_azimuth_codec); - break; - } - case 42: - case 45: - { - elevation_.AddEntriesFrom(input, _repeated_elevation_codec); - break; - } - case 50: - case 48: - { - hasAlmanac_.AddEntriesFrom(input, _repeated_hasAlmanac_codec); - break; - } - case 58: - case 56: - { - hasEphemeris_.AddEntriesFrom(input, _repeated_hasEphemeris_codec); - break; - } - case 66: - case 64: - { - usedInFix_.AddEntriesFrom(input, _repeated_usedInFix_codec); - break; - } - } - } - } - - } - - public sealed partial class SensorInfo : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SensorInfo()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor - { - get { return global::POGOProtos.Networking.Signature.Descriptor.NestedTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public SensorInfo() - { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public SensorInfo(SensorInfo other) : this() - { - timestampSnapshot_ = other.timestampSnapshot_; - magnetometerX_ = other.magnetometerX_; - magnetometerY_ = other.magnetometerY_; - magnetometerZ_ = other.magnetometerZ_; - angleNormalizedX_ = other.angleNormalizedX_; - angleNormalizedY_ = other.angleNormalizedY_; - angleNormalizedZ_ = other.angleNormalizedZ_; - accelRawX_ = other.accelRawX_; - accelRawY_ = other.accelRawY_; - accelRawZ_ = other.accelRawZ_; - gyroscopeRawX_ = other.gyroscopeRawX_; - gyroscopeRawY_ = other.gyroscopeRawY_; - gyroscopeRawZ_ = other.gyroscopeRawZ_; - accelNormalizedX_ = other.accelNormalizedX_; - accelNormalizedY_ = other.accelNormalizedY_; - accelNormalizedZ_ = other.accelNormalizedZ_; - accelerometerAxes_ = other.accelerometerAxes_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public SensorInfo Clone() - { - return new SensorInfo(this); - } - - /// Field number for the "timestamp_snapshot" field. - public const int TimestampSnapshotFieldNumber = 1; - private ulong timestampSnapshot_; - /// - /// in ms - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong TimestampSnapshot - { - get { return timestampSnapshot_; } - set - { - timestampSnapshot_ = value; - } - } - - /// Field number for the "magnetometer_x" field. - public const int MagnetometerXFieldNumber = 3; - private double magnetometerX_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double MagnetometerX - { - get { return magnetometerX_; } - set - { - magnetometerX_ = value; - } - } - - /// Field number for the "magnetometer_y" field. - public const int MagnetometerYFieldNumber = 4; - private double magnetometerY_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double MagnetometerY - { - get { return magnetometerY_; } - set - { - magnetometerY_ = value; - } - } - - /// Field number for the "magnetometer_z" field. - public const int MagnetometerZFieldNumber = 5; - private double magnetometerZ_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double MagnetometerZ - { - get { return magnetometerZ_; } - set - { - magnetometerZ_ = value; - } - } - - /// Field number for the "angle_normalized_x" field. - public const int AngleNormalizedXFieldNumber = 6; - private double angleNormalizedX_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double AngleNormalizedX - { - get { return angleNormalizedX_; } - set - { - angleNormalizedX_ = value; - } - } - - /// Field number for the "angle_normalized_y" field. - public const int AngleNormalizedYFieldNumber = 7; - private double angleNormalizedY_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double AngleNormalizedY - { - get { return angleNormalizedY_; } - set - { - angleNormalizedY_ = value; - } - } - - /// Field number for the "angle_normalized_z" field. - public const int AngleNormalizedZFieldNumber = 8; - private double angleNormalizedZ_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double AngleNormalizedZ - { - get { return angleNormalizedZ_; } - set - { - angleNormalizedZ_ = value; - } - } - - /// Field number for the "accel_raw_x" field. - public const int AccelRawXFieldNumber = 10; - private double accelRawX_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double AccelRawX - { - get { return accelRawX_; } - set - { - accelRawX_ = value; - } - } - - /// Field number for the "accel_raw_y" field. - public const int AccelRawYFieldNumber = 11; - private double accelRawY_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double AccelRawY - { - get { return accelRawY_; } - set - { - accelRawY_ = value; - } - } - - /// Field number for the "accel_raw_z" field. - public const int AccelRawZFieldNumber = 12; - private double accelRawZ_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double AccelRawZ - { - get { return accelRawZ_; } - set - { - accelRawZ_ = value; - } - } - - /// Field number for the "gyroscope_raw_x" field. - public const int GyroscopeRawXFieldNumber = 13; - private double gyroscopeRawX_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double GyroscopeRawX - { - get { return gyroscopeRawX_; } - set - { - gyroscopeRawX_ = value; - } - } - - /// Field number for the "gyroscope_raw_y" field. - public const int GyroscopeRawYFieldNumber = 14; - private double gyroscopeRawY_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double GyroscopeRawY - { - get { return gyroscopeRawY_; } - set - { - gyroscopeRawY_ = value; - } - } - - /// Field number for the "gyroscope_raw_z" field. - public const int GyroscopeRawZFieldNumber = 15; - private double gyroscopeRawZ_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double GyroscopeRawZ - { - get { return gyroscopeRawZ_; } - set - { - gyroscopeRawZ_ = value; - } - } - - /// Field number for the "accel_normalized_x" field. - public const int AccelNormalizedXFieldNumber = 16; - private double accelNormalizedX_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double AccelNormalizedX - { - get { return accelNormalizedX_; } - set - { - accelNormalizedX_ = value; - } - } - - /// Field number for the "accel_normalized_y" field. - public const int AccelNormalizedYFieldNumber = 17; - private double accelNormalizedY_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double AccelNormalizedY - { - get { return accelNormalizedY_; } - set - { - accelNormalizedY_ = value; - } - } - - /// Field number for the "accel_normalized_z" field. - public const int AccelNormalizedZFieldNumber = 18; - private double accelNormalizedZ_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double AccelNormalizedZ - { - get { return accelNormalizedZ_; } - set - { - accelNormalizedZ_ = value; - } - } - - /// Field number for the "accelerometer_axes" field. - public const int AccelerometerAxesFieldNumber = 19; - private ulong accelerometerAxes_; - /// - /// Always 3 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong AccelerometerAxes - { - get { return accelerometerAxes_; } - set - { - accelerometerAxes_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) - { - return Equals(other as SensorInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(SensorInfo other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (TimestampSnapshot != other.TimestampSnapshot) return false; - if (MagnetometerX != other.MagnetometerX) return false; - if (MagnetometerY != other.MagnetometerY) return false; - if (MagnetometerZ != other.MagnetometerZ) return false; - if (AngleNormalizedX != other.AngleNormalizedX) return false; - if (AngleNormalizedY != other.AngleNormalizedY) return false; - if (AngleNormalizedZ != other.AngleNormalizedZ) return false; - if (AccelRawX != other.AccelRawX) return false; - if (AccelRawY != other.AccelRawY) return false; - if (AccelRawZ != other.AccelRawZ) return false; - if (GyroscopeRawX != other.GyroscopeRawX) return false; - if (GyroscopeRawY != other.GyroscopeRawY) return false; - if (GyroscopeRawZ != other.GyroscopeRawZ) return false; - if (AccelNormalizedX != other.AccelNormalizedX) return false; - if (AccelNormalizedY != other.AccelNormalizedY) return false; - if (AccelNormalizedZ != other.AccelNormalizedZ) return false; - if (AccelerometerAxes != other.AccelerometerAxes) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() - { - int hash = 1; - if (TimestampSnapshot != 0UL) hash ^= TimestampSnapshot.GetHashCode(); - if (MagnetometerX != 0D) hash ^= MagnetometerX.GetHashCode(); - if (MagnetometerY != 0D) hash ^= MagnetometerY.GetHashCode(); - if (MagnetometerZ != 0D) hash ^= MagnetometerZ.GetHashCode(); - if (AngleNormalizedX != 0D) hash ^= AngleNormalizedX.GetHashCode(); - if (AngleNormalizedY != 0D) hash ^= AngleNormalizedY.GetHashCode(); - if (AngleNormalizedZ != 0D) hash ^= AngleNormalizedZ.GetHashCode(); - if (AccelRawX != 0D) hash ^= AccelRawX.GetHashCode(); - if (AccelRawY != 0D) hash ^= AccelRawY.GetHashCode(); - if (AccelRawZ != 0D) hash ^= AccelRawZ.GetHashCode(); - if (GyroscopeRawX != 0D) hash ^= GyroscopeRawX.GetHashCode(); - if (GyroscopeRawY != 0D) hash ^= GyroscopeRawY.GetHashCode(); - if (GyroscopeRawZ != 0D) hash ^= GyroscopeRawZ.GetHashCode(); - if (AccelNormalizedX != 0D) hash ^= AccelNormalizedX.GetHashCode(); - if (AccelNormalizedY != 0D) hash ^= AccelNormalizedY.GetHashCode(); - if (AccelNormalizedZ != 0D) hash ^= AccelNormalizedZ.GetHashCode(); - if (AccelerometerAxes != 0UL) hash ^= AccelerometerAxes.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) - { - if (TimestampSnapshot != 0UL) - { - output.WriteRawTag(8); - output.WriteUInt64(TimestampSnapshot); - } - if (MagnetometerX != 0D) - { - output.WriteRawTag(25); - output.WriteDouble(MagnetometerX); - } - if (MagnetometerY != 0D) - { - output.WriteRawTag(33); - output.WriteDouble(MagnetometerY); - } - if (MagnetometerZ != 0D) - { - output.WriteRawTag(41); - output.WriteDouble(MagnetometerZ); - } - if (AngleNormalizedX != 0D) - { - output.WriteRawTag(49); - output.WriteDouble(AngleNormalizedX); - } - if (AngleNormalizedY != 0D) - { - output.WriteRawTag(57); - output.WriteDouble(AngleNormalizedY); - } - if (AngleNormalizedZ != 0D) - { - output.WriteRawTag(65); - output.WriteDouble(AngleNormalizedZ); - } - if (AccelRawX != 0D) - { - output.WriteRawTag(81); - output.WriteDouble(AccelRawX); - } - if (AccelRawY != 0D) - { - output.WriteRawTag(89); - output.WriteDouble(AccelRawY); - } - if (AccelRawZ != 0D) - { - output.WriteRawTag(97); - output.WriteDouble(AccelRawZ); - } - if (GyroscopeRawX != 0D) - { - output.WriteRawTag(105); - output.WriteDouble(GyroscopeRawX); - } - if (GyroscopeRawY != 0D) - { - output.WriteRawTag(113); - output.WriteDouble(GyroscopeRawY); - } - if (GyroscopeRawZ != 0D) - { - output.WriteRawTag(121); - output.WriteDouble(GyroscopeRawZ); - } - if (AccelNormalizedX != 0D) - { - output.WriteRawTag(129, 1); - output.WriteDouble(AccelNormalizedX); - } - if (AccelNormalizedY != 0D) - { - output.WriteRawTag(137, 1); - output.WriteDouble(AccelNormalizedY); - } - if (AccelNormalizedZ != 0D) - { - output.WriteRawTag(145, 1); - output.WriteDouble(AccelNormalizedZ); - } - if (AccelerometerAxes != 0UL) - { - output.WriteRawTag(152, 1); - output.WriteUInt64(AccelerometerAxes); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() - { - int size = 0; - if (TimestampSnapshot != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TimestampSnapshot); - } - if (MagnetometerX != 0D) - { - size += 1 + 8; - } - if (MagnetometerY != 0D) - { - size += 1 + 8; - } - if (MagnetometerZ != 0D) - { - size += 1 + 8; - } - if (AngleNormalizedX != 0D) - { - size += 1 + 8; - } - if (AngleNormalizedY != 0D) - { - size += 1 + 8; - } - if (AngleNormalizedZ != 0D) - { - size += 1 + 8; - } - if (AccelRawX != 0D) - { - size += 1 + 8; - } - if (AccelRawY != 0D) - { - size += 1 + 8; - } - if (AccelRawZ != 0D) - { - size += 1 + 8; - } - if (GyroscopeRawX != 0D) - { - size += 1 + 8; - } - if (GyroscopeRawY != 0D) - { - size += 1 + 8; - } - if (GyroscopeRawZ != 0D) - { - size += 1 + 8; - } - if (AccelNormalizedX != 0D) - { - size += 2 + 8; - } - if (AccelNormalizedY != 0D) - { - size += 2 + 8; - } - if (AccelNormalizedZ != 0D) - { - size += 2 + 8; - } - if (AccelerometerAxes != 0UL) - { - size += 2 + pb::CodedOutputStream.ComputeUInt64Size(AccelerometerAxes); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(SensorInfo other) - { - if (other == null) - { - return; - } - if (other.TimestampSnapshot != 0UL) - { - TimestampSnapshot = other.TimestampSnapshot; - } - if (other.MagnetometerX != 0D) - { - MagnetometerX = other.MagnetometerX; - } - if (other.MagnetometerY != 0D) - { - MagnetometerY = other.MagnetometerY; - } - if (other.MagnetometerZ != 0D) - { - MagnetometerZ = other.MagnetometerZ; - } - if (other.AngleNormalizedX != 0D) - { - AngleNormalizedX = other.AngleNormalizedX; - } - if (other.AngleNormalizedY != 0D) - { - AngleNormalizedY = other.AngleNormalizedY; - } - if (other.AngleNormalizedZ != 0D) - { - AngleNormalizedZ = other.AngleNormalizedZ; - } - if (other.AccelRawX != 0D) - { - AccelRawX = other.AccelRawX; - } - if (other.AccelRawY != 0D) - { - AccelRawY = other.AccelRawY; - } - if (other.AccelRawZ != 0D) - { - AccelRawZ = other.AccelRawZ; - } - if (other.GyroscopeRawX != 0D) - { - GyroscopeRawX = other.GyroscopeRawX; - } - if (other.GyroscopeRawY != 0D) - { - GyroscopeRawY = other.GyroscopeRawY; - } - if (other.GyroscopeRawZ != 0D) - { - GyroscopeRawZ = other.GyroscopeRawZ; - } - if (other.AccelNormalizedX != 0D) - { - AccelNormalizedX = other.AccelNormalizedX; - } - if (other.AccelNormalizedY != 0D) - { - AccelNormalizedY = other.AccelNormalizedY; - } - if (other.AccelNormalizedZ != 0D) - { - AccelNormalizedZ = other.AccelNormalizedZ; - } - if (other.AccelerometerAxes != 0UL) - { - AccelerometerAxes = other.AccelerometerAxes; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - TimestampSnapshot = input.ReadUInt64(); - break; - } - case 25: - { - MagnetometerX = input.ReadDouble(); - break; - } - case 33: - { - MagnetometerY = input.ReadDouble(); - break; - } - case 41: - { - MagnetometerZ = input.ReadDouble(); - break; - } - case 49: - { - AngleNormalizedX = input.ReadDouble(); - break; - } - case 57: - { - AngleNormalizedY = input.ReadDouble(); - break; - } - case 65: - { - AngleNormalizedZ = input.ReadDouble(); - break; - } - case 81: - { - AccelRawX = input.ReadDouble(); - break; - } - case 89: - { - AccelRawY = input.ReadDouble(); - break; - } - case 97: - { - AccelRawZ = input.ReadDouble(); - break; - } - case 105: - { - GyroscopeRawX = input.ReadDouble(); - break; - } - case 113: - { - GyroscopeRawY = input.ReadDouble(); - break; - } - case 121: - { - GyroscopeRawZ = input.ReadDouble(); - break; - } - case 129: - { - AccelNormalizedX = input.ReadDouble(); - break; - } - case 137: - { - AccelNormalizedY = input.ReadDouble(); - break; - } - case 145: - { - AccelNormalizedZ = input.ReadDouble(); - break; - } - case 152: - { - AccelerometerAxes = input.ReadUInt64(); - break; - } - } - } - } - - } - - public sealed partial class DeviceInfo : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceInfo()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor - { - get { return global::POGOProtos.Networking.Signature.Descriptor.NestedTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public DeviceInfo() - { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public DeviceInfo(DeviceInfo other) : this() - { - deviceId_ = other.deviceId_; - androidBoardName_ = other.androidBoardName_; - androidBootloader_ = other.androidBootloader_; - deviceBrand_ = other.deviceBrand_; - deviceModel_ = other.deviceModel_; - deviceModelIdentifier_ = other.deviceModelIdentifier_; - deviceModelBoot_ = other.deviceModelBoot_; - hardwareManufacturer_ = other.hardwareManufacturer_; - hardwareModel_ = other.hardwareModel_; - firmwareBrand_ = other.firmwareBrand_; - firmwareTags_ = other.firmwareTags_; - firmwareType_ = other.firmwareType_; - firmwareFingerprint_ = other.firmwareFingerprint_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public DeviceInfo Clone() - { - return new DeviceInfo(this); - } - - /// Field number for the "device_id" field. - public const int DeviceIdFieldNumber = 1; - private string deviceId_ = ""; - /// - /// Hex string - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string DeviceId - { - get { return deviceId_; } - set - { - deviceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "android_board_name" field. - public const int AndroidBoardNameFieldNumber = 2; - private string androidBoardName_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string AndroidBoardName - { - get { return androidBoardName_; } - set - { - androidBoardName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "android_bootloader" field. - public const int AndroidBootloaderFieldNumber = 3; - private string androidBootloader_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string AndroidBootloader - { - get { return androidBootloader_; } - set - { - androidBootloader_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_brand" field. - public const int DeviceBrandFieldNumber = 4; - private string deviceBrand_ = ""; - /// - /// On Android: product.brand - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string DeviceBrand - { - get { return deviceBrand_; } - set - { - deviceBrand_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_model" field. - public const int DeviceModelFieldNumber = 5; - private string deviceModel_ = ""; - /// - /// On Android: product.device - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string DeviceModel - { - get { return deviceModel_; } - set - { - deviceModel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_model_identifier" field. - public const int DeviceModelIdentifierFieldNumber = 6; - private string deviceModelIdentifier_ = ""; - /// - /// Android only, build.display.id - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string DeviceModelIdentifier - { - get { return deviceModelIdentifier_; } - set - { - deviceModelIdentifier_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_model_boot" field. - public const int DeviceModelBootFieldNumber = 7; - private string deviceModelBoot_ = ""; - /// - /// On Android: boot.hardware - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string DeviceModelBoot - { - get { return deviceModelBoot_; } - set - { - deviceModelBoot_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "hardware_manufacturer" field. - public const int HardwareManufacturerFieldNumber = 8; - private string hardwareManufacturer_ = ""; - /// - /// On Android: product.manufacturer - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string HardwareManufacturer - { - get { return hardwareManufacturer_; } - set - { - hardwareManufacturer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "hardware_model" field. - public const int HardwareModelFieldNumber = 9; - private string hardwareModel_ = ""; - /// - /// On Android: product.model - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string HardwareModel - { - get { return hardwareModel_; } - set - { - hardwareModel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "firmware_brand" field. - public const int FirmwareBrandFieldNumber = 10; - private string firmwareBrand_ = ""; - /// - /// On Android: product.name, on iOS: "iPhone OS" - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string FirmwareBrand - { - get { return firmwareBrand_; } - set - { - firmwareBrand_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "firmware_tags" field. - public const int FirmwareTagsFieldNumber = 12; - private string firmwareTags_ = ""; - /// - /// Android only, build.tags - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string FirmwareTags - { - get { return firmwareTags_; } - set - { - firmwareTags_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "firmware_type" field. - public const int FirmwareTypeFieldNumber = 13; - private string firmwareType_ = ""; - /// - /// On Android: build.type, on iOS instead: iOS version - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string FirmwareType - { - get { return firmwareType_; } - set - { - firmwareType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "firmware_fingerprint" field. - public const int FirmwareFingerprintFieldNumber = 14; - private string firmwareFingerprint_ = ""; - /// - /// Android only, build.fingerprint - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string FirmwareFingerprint - { - get { return firmwareFingerprint_; } - set - { - firmwareFingerprint_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) - { - return Equals(other as DeviceInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(DeviceInfo other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (DeviceId != other.DeviceId) return false; - if (AndroidBoardName != other.AndroidBoardName) return false; - if (AndroidBootloader != other.AndroidBootloader) return false; - if (DeviceBrand != other.DeviceBrand) return false; - if (DeviceModel != other.DeviceModel) return false; - if (DeviceModelIdentifier != other.DeviceModelIdentifier) return false; - if (DeviceModelBoot != other.DeviceModelBoot) return false; - if (HardwareManufacturer != other.HardwareManufacturer) return false; - if (HardwareModel != other.HardwareModel) return false; - if (FirmwareBrand != other.FirmwareBrand) return false; - if (FirmwareTags != other.FirmwareTags) return false; - if (FirmwareType != other.FirmwareType) return false; - if (FirmwareFingerprint != other.FirmwareFingerprint) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() - { - int hash = 1; - if (DeviceId.Length != 0) hash ^= DeviceId.GetHashCode(); - if (AndroidBoardName.Length != 0) hash ^= AndroidBoardName.GetHashCode(); - if (AndroidBootloader.Length != 0) hash ^= AndroidBootloader.GetHashCode(); - if (DeviceBrand.Length != 0) hash ^= DeviceBrand.GetHashCode(); - if (DeviceModel.Length != 0) hash ^= DeviceModel.GetHashCode(); - if (DeviceModelIdentifier.Length != 0) hash ^= DeviceModelIdentifier.GetHashCode(); - if (DeviceModelBoot.Length != 0) hash ^= DeviceModelBoot.GetHashCode(); - if (HardwareManufacturer.Length != 0) hash ^= HardwareManufacturer.GetHashCode(); - if (HardwareModel.Length != 0) hash ^= HardwareModel.GetHashCode(); - if (FirmwareBrand.Length != 0) hash ^= FirmwareBrand.GetHashCode(); - if (FirmwareTags.Length != 0) hash ^= FirmwareTags.GetHashCode(); - if (FirmwareType.Length != 0) hash ^= FirmwareType.GetHashCode(); - if (FirmwareFingerprint.Length != 0) hash ^= FirmwareFingerprint.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) - { - if (DeviceId.Length != 0) - { - output.WriteRawTag(10); - output.WriteString(DeviceId); - } - if (AndroidBoardName.Length != 0) - { - output.WriteRawTag(18); - output.WriteString(AndroidBoardName); - } - if (AndroidBootloader.Length != 0) - { - output.WriteRawTag(26); - output.WriteString(AndroidBootloader); - } - if (DeviceBrand.Length != 0) - { - output.WriteRawTag(34); - output.WriteString(DeviceBrand); - } - if (DeviceModel.Length != 0) - { - output.WriteRawTag(42); - output.WriteString(DeviceModel); - } - if (DeviceModelIdentifier.Length != 0) - { - output.WriteRawTag(50); - output.WriteString(DeviceModelIdentifier); - } - if (DeviceModelBoot.Length != 0) - { - output.WriteRawTag(58); - output.WriteString(DeviceModelBoot); - } - if (HardwareManufacturer.Length != 0) - { - output.WriteRawTag(66); - output.WriteString(HardwareManufacturer); - } - if (HardwareModel.Length != 0) - { - output.WriteRawTag(74); - output.WriteString(HardwareModel); - } - if (FirmwareBrand.Length != 0) - { - output.WriteRawTag(82); - output.WriteString(FirmwareBrand); - } - if (FirmwareTags.Length != 0) - { - output.WriteRawTag(98); - output.WriteString(FirmwareTags); - } - if (FirmwareType.Length != 0) - { - output.WriteRawTag(106); - output.WriteString(FirmwareType); - } - if (FirmwareFingerprint.Length != 0) - { - output.WriteRawTag(114); - output.WriteString(FirmwareFingerprint); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() - { - int size = 0; - if (DeviceId.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceId); - } - if (AndroidBoardName.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AndroidBoardName); - } - if (AndroidBootloader.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AndroidBootloader); - } - if (DeviceBrand.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceBrand); - } - if (DeviceModel.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceModel); - } - if (DeviceModelIdentifier.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceModelIdentifier); - } - if (DeviceModelBoot.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceModelBoot); - } - if (HardwareManufacturer.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(HardwareManufacturer); - } - if (HardwareModel.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(HardwareModel); - } - if (FirmwareBrand.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FirmwareBrand); - } - if (FirmwareTags.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FirmwareTags); - } - if (FirmwareType.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FirmwareType); - } - if (FirmwareFingerprint.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FirmwareFingerprint); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(DeviceInfo other) - { - if (other == null) - { - return; - } - if (other.DeviceId.Length != 0) - { - DeviceId = other.DeviceId; - } - if (other.AndroidBoardName.Length != 0) - { - AndroidBoardName = other.AndroidBoardName; - } - if (other.AndroidBootloader.Length != 0) - { - AndroidBootloader = other.AndroidBootloader; - } - if (other.DeviceBrand.Length != 0) - { - DeviceBrand = other.DeviceBrand; - } - if (other.DeviceModel.Length != 0) - { - DeviceModel = other.DeviceModel; - } - if (other.DeviceModelIdentifier.Length != 0) - { - DeviceModelIdentifier = other.DeviceModelIdentifier; - } - if (other.DeviceModelBoot.Length != 0) - { - DeviceModelBoot = other.DeviceModelBoot; - } - if (other.HardwareManufacturer.Length != 0) - { - HardwareManufacturer = other.HardwareManufacturer; - } - if (other.HardwareModel.Length != 0) - { - HardwareModel = other.HardwareModel; - } - if (other.FirmwareBrand.Length != 0) - { - FirmwareBrand = other.FirmwareBrand; - } - if (other.FirmwareTags.Length != 0) - { - FirmwareTags = other.FirmwareTags; - } - if (other.FirmwareType.Length != 0) - { - FirmwareType = other.FirmwareType; - } - if (other.FirmwareFingerprint.Length != 0) - { - FirmwareFingerprint = other.FirmwareFingerprint; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 10: - { - DeviceId = input.ReadString(); - break; - } - case 18: - { - AndroidBoardName = input.ReadString(); - break; - } - case 26: - { - AndroidBootloader = input.ReadString(); - break; - } - case 34: - { - DeviceBrand = input.ReadString(); - break; - } - case 42: - { - DeviceModel = input.ReadString(); - break; - } - case 50: - { - DeviceModelIdentifier = input.ReadString(); - break; - } - case 58: - { - DeviceModelBoot = input.ReadString(); - break; - } - case 66: - { - HardwareManufacturer = input.ReadString(); - break; - } - case 74: - { - HardwareModel = input.ReadString(); - break; - } - case 82: - { - FirmwareBrand = input.ReadString(); - break; - } - case 98: - { - FirmwareTags = input.ReadString(); - break; - } - case 106: - { - FirmwareType = input.ReadString(); - break; - } - case 114: - { - FirmwareFingerprint = input.ReadString(); - break; - } - } - } - } - - } - - public sealed partial class ActivityStatus : pb::IMessage - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActivityStatus()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor - { - get { return global::POGOProtos.Networking.Signature.Descriptor.NestedTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ActivityStatus() - { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ActivityStatus(ActivityStatus other) : this() - { - startTimeMs_ = other.startTimeMs_; - unknownStatus_ = other.unknownStatus_; - walking_ = other.walking_; - running_ = other.running_; - stationary_ = other.stationary_; - automotive_ = other.automotive_; - tilting_ = other.tilting_; - cycling_ = other.cycling_; - status_ = other.status_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ActivityStatus Clone() - { - return new ActivityStatus(this); - } - - /// Field number for the "start_time_ms" field. - public const int StartTimeMsFieldNumber = 1; - private ulong startTimeMs_; - /// - /// all of these had 1 as their value - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong StartTimeMs - { - get { return startTimeMs_; } - set - { - startTimeMs_ = value; - } - } - - /// Field number for the "unknown_status" field. - public const int UnknownStatusFieldNumber = 2; - private bool unknownStatus_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool UnknownStatus - { - get { return unknownStatus_; } - set - { - unknownStatus_ = value; - } - } - - /// Field number for the "walking" field. - public const int WalkingFieldNumber = 3; - private bool walking_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Walking - { - get { return walking_; } - set - { - walking_ = value; - } - } - - /// Field number for the "running" field. - public const int RunningFieldNumber = 4; - private bool running_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Running - { - get { return running_; } - set - { - running_ = value; - } - } - - /// Field number for the "stationary" field. - public const int StationaryFieldNumber = 5; - private bool stationary_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Stationary - { - get { return stationary_; } - set - { - stationary_ = value; - } - } - - /// Field number for the "automotive" field. - public const int AutomotiveFieldNumber = 6; - private bool automotive_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Automotive - { - get { return automotive_; } - set - { - automotive_ = value; - } - } - - /// Field number for the "tilting" field. - public const int TiltingFieldNumber = 7; - private bool tilting_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Tilting - { - get { return tilting_; } - set - { - tilting_ = value; - } - } - - /// Field number for the "cycling" field. - public const int CyclingFieldNumber = 8; - private bool cycling_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Cycling - { - get { return cycling_; } - set - { - cycling_ = value; - } - } - - /// Field number for the "status" field. - public const int StatusFieldNumber = 9; - private pb::ByteString status_ = pb::ByteString.Empty; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pb::ByteString Status - { - get { return status_; } - set - { - status_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) - { - return Equals(other as ActivityStatus); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(ActivityStatus other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (StartTimeMs != other.StartTimeMs) return false; - if (UnknownStatus != other.UnknownStatus) return false; - if (Walking != other.Walking) return false; - if (Running != other.Running) return false; - if (Stationary != other.Stationary) return false; - if (Automotive != other.Automotive) return false; - if (Tilting != other.Tilting) return false; - if (Cycling != other.Cycling) return false; - if (Status != other.Status) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() - { - int hash = 1; - if (StartTimeMs != 0UL) hash ^= StartTimeMs.GetHashCode(); - if (UnknownStatus != false) hash ^= UnknownStatus.GetHashCode(); - if (Walking != false) hash ^= Walking.GetHashCode(); - if (Running != false) hash ^= Running.GetHashCode(); - if (Stationary != false) hash ^= Stationary.GetHashCode(); - if (Automotive != false) hash ^= Automotive.GetHashCode(); - if (Tilting != false) hash ^= Tilting.GetHashCode(); - if (Cycling != false) hash ^= Cycling.GetHashCode(); - if (Status.Length != 0) hash ^= Status.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) - { - if (StartTimeMs != 0UL) - { - output.WriteRawTag(8); - output.WriteUInt64(StartTimeMs); - } - if (UnknownStatus != false) - { - output.WriteRawTag(16); - output.WriteBool(UnknownStatus); - } - if (Walking != false) - { - output.WriteRawTag(24); - output.WriteBool(Walking); - } - if (Running != false) - { - output.WriteRawTag(32); - output.WriteBool(Running); - } - if (Stationary != false) - { - output.WriteRawTag(40); - output.WriteBool(Stationary); - } - if (Automotive != false) - { - output.WriteRawTag(48); - output.WriteBool(Automotive); - } - if (Tilting != false) - { - output.WriteRawTag(56); - output.WriteBool(Tilting); - } - if (Cycling != false) - { - output.WriteRawTag(64); - output.WriteBool(Cycling); - } - if (Status.Length != 0) - { - output.WriteRawTag(74); - output.WriteBytes(Status); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() - { - int size = 0; - if (StartTimeMs != 0UL) - { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StartTimeMs); - } - if (UnknownStatus != false) - { - size += 1 + 1; - } - if (Walking != false) - { - size += 1 + 1; - } - if (Running != false) - { - size += 1 + 1; - } - if (Stationary != false) - { - size += 1 + 1; - } - if (Automotive != false) - { - size += 1 + 1; - } - if (Tilting != false) - { - size += 1 + 1; - } - if (Cycling != false) - { - size += 1 + 1; - } - if (Status.Length != 0) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Status); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(ActivityStatus other) - { - if (other == null) - { - return; - } - if (other.StartTimeMs != 0UL) - { - StartTimeMs = other.StartTimeMs; - } - if (other.UnknownStatus != false) - { - UnknownStatus = other.UnknownStatus; - } - if (other.Walking != false) - { - Walking = other.Walking; - } - if (other.Running != false) - { - Running = other.Running; - } - if (other.Stationary != false) - { - Stationary = other.Stationary; - } - if (other.Automotive != false) - { - Automotive = other.Automotive; - } - if (other.Tilting != false) - { - Tilting = other.Tilting; - } - if (other.Cycling != false) - { - Cycling = other.Cycling; - } - if (other.Status.Length != 0) - { - Status = other.Status; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - input.SkipLastField(); - break; - case 8: - { - StartTimeMs = input.ReadUInt64(); - break; - } - case 16: - { - UnknownStatus = input.ReadBool(); - break; - } - case 24: - { - Walking = input.ReadBool(); - break; - } - case 32: - { - Running = input.ReadBool(); - break; - } - case 40: - { - Stationary = input.ReadBool(); - break; - } - case 48: - { - Automotive = input.ReadBool(); - break; - } - case 56: - { - Tilting = input.ReadBool(); - break; - } - case 64: - { - Cycling = input.ReadBool(); - break; - } - case 74: - { - Status = input.ReadBytes(); - break; - } - } - } - } - - } - - } - #endregion - - } - - #endregion -} - -#endregion Designer generated code diff --git a/Networking/Signature/POGOProtosNetworkingSignature.cs b/Networking/Signature/POGOProtosNetworkingSignature.cs deleted file mode 100644 index fee737d..0000000 --- a/Networking/Signature/POGOProtosNetworkingSignature.cs +++ /dev/null @@ -1,2195 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: POGOProtos.Networking.Signature.proto -#pragma warning disable 1591, 0612, 3021 -#region Designer generated code - -using pb = global::Google.Protobuf; -using pbc = global::Google.Protobuf.Collections; -using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; -namespace POGOProtos.Networking.Signature { - - /// Holder for reflection information generated from POGOProtos.Networking.Signature.proto - public static partial class POGOProtosNetworkingSignatureReflection { - - #region Descriptor - /// File descriptor for POGOProtos.Networking.Signature.proto - public static pbr::FileDescriptor Descriptor { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static POGOProtosNetworkingSignatureReflection() { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "CiVQT0dPUHJvdG9zLk5ldHdvcmtpbmcuU2lnbmF0dXJlLnByb3RvEh9QT0dP", - "UHJvdG9zLk5ldHdvcmtpbmcuU2lnbmF0dXJlIvYKCglTaWduYXR1cmUSTAoM", - "bG9jYXRpb25fZml4GAQgAygLMjYuUE9HT1Byb3Rvcy5OZXR3b3JraW5nLlNp", - "Z25hdHVyZS5TaWduYXR1cmUuTG9jYXRpb25GaXgSSgoLc2Vuc29yX2luZm8Y", - "ByABKAsyNS5QT0dPUHJvdG9zLk5ldHdvcmtpbmcuU2lnbmF0dXJlLlNpZ25h", - "dHVyZS5TZW5zb3JJbmZvEkoKC2RldmljZV9pbmZvGAggASgLMjUuUE9HT1By", - "b3Rvcy5OZXR3b3JraW5nLlNpZ25hdHVyZS5TaWduYXR1cmUuRGV2aWNlSW5m", - "bxJBCgR1bms5GAkgASgLMjMuUE9HT1Byb3Rvcy5OZXR3b3JraW5nLlNpZ25h", - "dHVyZS5TaWduYXR1cmUuVW5rbm93bjkSEQoJdGltZXN0YW1wGBcgASgEEhQK", - "DHJlcXVlc3RfaGFzaBgYIAMoDRqxAQoLTG9jYXRpb25GaXgSEAoIcHJvdmlk", - "ZXIYASABKAkSHQoVdGltZXN0YW1wX3NpbmNlX3N0YXJ0GAIgASgEEhAKCGxh", - "dGl0dWRlGA0gASgCEhEKCWxvbmdpdHVkZRgOIAEoAhINCgV1bmsyMBgUIAEo", - "BBIQCghhbHRpdHVkZRgVIAEoAhINCgV1bmsyMhgWIAEoBBINCgV1bmsyNhga", - "IAEoBBINCgV1bmsyOBgcIAEoBBp6CghVbmtub3duNRIMCgR1bmsxGAEgASgE", - "EgwKBHVuazIYAiABKAwSDAoEdW5rMxgDIAMoBxIMCgR1bms0GAQgAygHEgwK", - "BHVuazUYBSADKAcSDAoEdW5rNhgGIAEoDBIMCgR1bms3GAcgASgMEgwKBHVu", - "azgYCCABKAwa0gIKClNlbnNvckluZm8SGgoSdGltZXN0YW1wX3NuYXBzaG90", - "GAEgASgEEgwKBHVuazMYAyABKAQSDAoEdW5rNBgEIAEoBBIMCgR1bms1GAUg", - "ASgEEhgKEGd5cm9zY29wZV9hbmdsZTYYBiABKAESGAoQZ3lyb3Njb3BlX2Fu", - "Z2xlNxgHIAEoARIYChBneXJvc2NvcGVfYW5nbGU4GAggASgBEg0KBXVuazEw", - "GAogASgEEg0KBXVuazExGAsgASgEEg0KBXVuazEyGAwgASgEEg0KBXVuazEz", - "GA0gASgEEg0KBXVuazE0GA4gASgEEhcKD2FjY2VsZXJvbWV0ZXJfeBgQIAEo", - "ARIXCg9hY2NlbGVyb21ldGVyX3kYESABKAESFwoPYWNjZWxlcm9tZXRlcl96", - "GBIgASgBEhoKEmFjY2VsZXJvbWV0ZXJfYXhlcxgTIAEoBBrbAgoKRGV2aWNl", - "SW5mbxIRCglkZXZpY2VfaWQYASABKAkSGgoSYW5kcm9pZF9ib2FyZF9uYW1l", - "GAIgASgJEhoKEmFuZHJvaWRfYm9vdGxvYWRlchgDIAEoCRIUCgxkZXZpY2Vf", - "YnJhbmQYBCABKAkSFAoMZGV2aWNlX21vZGVsGAUgASgJEh8KF2RldmljZV9t", - "b2RlbF9pZGVudGlmaWVyGAYgASgJEhoKEmRldmljZV9jb21tc19tb2RlbBgH", - "IAEoCRIdChVoYXJkd2FyZV9tYW51ZmFjdHVyZXIYCCABKAkSFgoOaGFyZHdh", - "cmVfbW9kZWwYCSABKAkSFgoOZmlybXdhcmVfYnJhbmQYCiABKAkSFQoNZmly", - "bXdhcmVfdGFncxgMIAEoCRIVCg1maXJtd2FyZV90eXBlGA0gASgJEhwKFGZp", - "cm13YXJlX2ZpbmdlcnByaW50GA4gASgJGjQKCFVua25vd245EgwKBHVuazMY", - "AyABKAQSDAoEdW5rNRgFIAEoBBIMCgR1bms2GAYgASgEYgZwcm90bzM=")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Signature.Signature), global::POGOProtos.Networking.Signature.Signature.Parser, new[]{ "LocationFix", "SensorInfo", "DeviceInfo", "Unk9", "Timestamp", "RequestHash" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Signature.Signature.Types.LocationFix), global::POGOProtos.Networking.Signature.Signature.Types.LocationFix.Parser, new[]{ "Provider", "TimestampSinceStart", "Latitude", "Longitude", "Unk20", "Altitude", "Unk22", "Unk26", "Unk28" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Signature.Signature.Types.Unknown5), global::POGOProtos.Networking.Signature.Signature.Types.Unknown5.Parser, new[]{ "Unk1", "Unk2", "Unk3", "Unk4", "Unk5", "Unk6", "Unk7", "Unk8" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Signature.Signature.Types.SensorInfo), global::POGOProtos.Networking.Signature.Signature.Types.SensorInfo.Parser, new[]{ "TimestampSnapshot", "Unk3", "Unk4", "Unk5", "GyroscopeAngle6", "GyroscopeAngle7", "GyroscopeAngle8", "Unk10", "Unk11", "Unk12", "Unk13", "Unk14", "AccelerometerX", "AccelerometerY", "AccelerometerZ", "AccelerometerAxes" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Signature.Signature.Types.DeviceInfo), global::POGOProtos.Networking.Signature.Signature.Types.DeviceInfo.Parser, new[]{ "DeviceId", "AndroidBoardName", "AndroidBootloader", "DeviceBrand", "DeviceModel", "DeviceModelIdentifier", "DeviceCommsModel", "HardwareManufacturer", "HardwareModel", "FirmwareBrand", "FirmwareTags", "FirmwareType", "FirmwareFingerprint" }, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::POGOProtos.Networking.Signature.Signature.Types.Unknown9), global::POGOProtos.Networking.Signature.Signature.Types.Unknown9.Parser, new[]{ "Unk3", "Unk5", "Unk6" }, null, null, null)}) - })); - } - #endregion - - } - #region Messages - public sealed partial class Signature : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Signature()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Signature.POGOProtosNetworkingSignatureReflection.Descriptor.MessageTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Signature() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Signature(Signature other) : this() { - locationFix_ = other.locationFix_.Clone(); - SensorInfo = other.sensorInfo_ != null ? other.SensorInfo.Clone() : null; - DeviceInfo = other.deviceInfo_ != null ? other.DeviceInfo.Clone() : null; - Unk9 = other.unk9_ != null ? other.Unk9.Clone() : null; - timestamp_ = other.timestamp_; - requestHash_ = other.requestHash_.Clone(); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Signature Clone() { - return new Signature(this); - } - - /// Field number for the "location_fix" field. - public const int LocationFixFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_locationFix_codec - = pb::FieldCodec.ForMessage(34, global::POGOProtos.Networking.Signature.Signature.Types.LocationFix.Parser); - private readonly pbc::RepeatedField locationFix_ = new pbc::RepeatedField(); - /// - /// uint64 timestamp_since_start = 2; - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField LocationFix { - get { return locationFix_; } - } - - /// Field number for the "sensor_info" field. - public const int SensorInfoFieldNumber = 7; - private global::POGOProtos.Networking.Signature.Signature.Types.SensorInfo sensorInfo_; - /// - /// Unknown5 unk5 = 5; - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Networking.Signature.Signature.Types.SensorInfo SensorInfo { - get { return sensorInfo_; } - set { - sensorInfo_ = value; - } - } - - /// Field number for the "device_info" field. - public const int DeviceInfoFieldNumber = 8; - private global::POGOProtos.Networking.Signature.Signature.Types.DeviceInfo deviceInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Networking.Signature.Signature.Types.DeviceInfo DeviceInfo { - get { return deviceInfo_; } - set { - deviceInfo_ = value; - } - } - - /// Field number for the "unk9" field. - public const int Unk9FieldNumber = 9; - private global::POGOProtos.Networking.Signature.Signature.Types.Unknown9 unk9_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public global::POGOProtos.Networking.Signature.Signature.Types.Unknown9 Unk9 { - get { return unk9_; } - set { - unk9_ = value; - } - } - - /// Field number for the "timestamp" field. - public const int TimestampFieldNumber = 23; - private ulong timestamp_; - /// - /// uint64 unk10 = 10; //actually looks like a negative double - /// uint64 unk20 = 20; - /// bytes unk22 = 22; // same in all dumps - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong Timestamp { - get { return timestamp_; } - set { - timestamp_ = value; - } - } - - /// Field number for the "request_hash" field. - public const int RequestHashFieldNumber = 24; - private static readonly pb::FieldCodec _repeated_requestHash_codec - = pb::FieldCodec.ForUInt32(194); - private readonly pbc::RepeatedField requestHash_ = new pbc::RepeatedField(); - /// - /// hashes of each request message - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField RequestHash { - get { return requestHash_; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as Signature); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Signature other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if(!locationFix_.Equals(other.locationFix_)) return false; - if (!object.Equals(SensorInfo, other.SensorInfo)) return false; - if (!object.Equals(DeviceInfo, other.DeviceInfo)) return false; - if (!object.Equals(Unk9, other.Unk9)) return false; - if (Timestamp != other.Timestamp) return false; - if(!requestHash_.Equals(other.requestHash_)) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - hash ^= locationFix_.GetHashCode(); - if (sensorInfo_ != null) hash ^= SensorInfo.GetHashCode(); - if (deviceInfo_ != null) hash ^= DeviceInfo.GetHashCode(); - if (unk9_ != null) hash ^= Unk9.GetHashCode(); - if (Timestamp != 0UL) hash ^= Timestamp.GetHashCode(); - hash ^= requestHash_.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - locationFix_.WriteTo(output, _repeated_locationFix_codec); - if (sensorInfo_ != null) { - output.WriteRawTag(58); - output.WriteMessage(SensorInfo); - } - if (deviceInfo_ != null) { - output.WriteRawTag(66); - output.WriteMessage(DeviceInfo); - } - if (unk9_ != null) { - output.WriteRawTag(74); - output.WriteMessage(Unk9); - } - if (Timestamp != 0UL) { - output.WriteRawTag(184, 1); - output.WriteUInt64(Timestamp); - } - requestHash_.WriteTo(output, _repeated_requestHash_codec); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - size += locationFix_.CalculateSize(_repeated_locationFix_codec); - if (sensorInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SensorInfo); - } - if (deviceInfo_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceInfo); - } - if (unk9_ != null) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Unk9); - } - if (Timestamp != 0UL) { - size += 2 + pb::CodedOutputStream.ComputeUInt64Size(Timestamp); - } - size += requestHash_.CalculateSize(_repeated_requestHash_codec); - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Signature other) { - if (other == null) { - return; - } - locationFix_.Add(other.locationFix_); - if (other.sensorInfo_ != null) { - if (sensorInfo_ == null) { - sensorInfo_ = new global::POGOProtos.Networking.Signature.Signature.Types.SensorInfo(); - } - SensorInfo.MergeFrom(other.SensorInfo); - } - if (other.deviceInfo_ != null) { - if (deviceInfo_ == null) { - deviceInfo_ = new global::POGOProtos.Networking.Signature.Signature.Types.DeviceInfo(); - } - DeviceInfo.MergeFrom(other.DeviceInfo); - } - if (other.unk9_ != null) { - if (unk9_ == null) { - unk9_ = new global::POGOProtos.Networking.Signature.Signature.Types.Unknown9(); - } - Unk9.MergeFrom(other.Unk9); - } - if (other.Timestamp != 0UL) { - Timestamp = other.Timestamp; - } - requestHash_.Add(other.requestHash_); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 34: { - locationFix_.AddEntriesFrom(input, _repeated_locationFix_codec); - break; - } - case 58: { - if (sensorInfo_ == null) { - sensorInfo_ = new global::POGOProtos.Networking.Signature.Signature.Types.SensorInfo(); - } - input.ReadMessage(sensorInfo_); - break; - } - case 66: { - if (deviceInfo_ == null) { - deviceInfo_ = new global::POGOProtos.Networking.Signature.Signature.Types.DeviceInfo(); - } - input.ReadMessage(deviceInfo_); - break; - } - case 74: { - if (unk9_ == null) { - unk9_ = new global::POGOProtos.Networking.Signature.Signature.Types.Unknown9(); - } - input.ReadMessage(unk9_); - break; - } - case 184: { - Timestamp = input.ReadUInt64(); - break; - } - case 194: - case 192: { - requestHash_.AddEntriesFrom(input, _repeated_requestHash_codec); - break; - } - } - } - } - - #region Nested types - /// Container for nested types declared in the Signature message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static partial class Types { - public sealed partial class LocationFix : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LocationFix()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Signature.Signature.Descriptor.NestedTypes[0]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public LocationFix() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public LocationFix(LocationFix other) : this() { - provider_ = other.provider_; - timestampSinceStart_ = other.timestampSinceStart_; - latitude_ = other.latitude_; - longitude_ = other.longitude_; - unk20_ = other.unk20_; - altitude_ = other.altitude_; - unk22_ = other.unk22_; - unk26_ = other.unk26_; - unk28_ = other.unk28_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public LocationFix Clone() { - return new LocationFix(this); - } - - /// Field number for the "provider" field. - public const int ProviderFieldNumber = 1; - private string provider_ = ""; - /// - /// On iOS there are some LocationFixes with unk26=1 and everything else empty - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string Provider { - get { return provider_; } - set { - provider_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "timestamp_since_start" field. - public const int TimestampSinceStartFieldNumber = 2; - private ulong timestampSinceStart_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong TimestampSinceStart { - get { return timestampSinceStart_; } - set { - timestampSinceStart_ = value; - } - } - - /// Field number for the "latitude" field. - public const int LatitudeFieldNumber = 13; - private float latitude_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public float Latitude { - get { return latitude_; } - set { - latitude_ = value; - } - } - - /// Field number for the "longitude" field. - public const int LongitudeFieldNumber = 14; - private float longitude_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public float Longitude { - get { return longitude_; } - set { - longitude_ = value; - } - } - - /// Field number for the "unk20" field. - public const int Unk20FieldNumber = 20; - private ulong unk20_; - /// - /// sample 0xbf800000 (iOS only, possibly horizontal accuracy) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong Unk20 { - get { return unk20_; } - set { - unk20_ = value; - } - } - - /// Field number for the "altitude" field. - public const int AltitudeFieldNumber = 21; - private float altitude_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public float Altitude { - get { return altitude_; } - set { - altitude_ = value; - } - } - - /// Field number for the "unk22" field. - public const int Unk22FieldNumber = 22; - private ulong unk22_; - /// - /// sample 0x40800000 (iOS only, possibly vertical accuracy) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong Unk22 { - get { return unk22_; } - set { - unk22_ = value; - } - } - - /// Field number for the "unk26" field. - public const int Unk26FieldNumber = 26; - private ulong unk26_; - /// - /// Always 3 (possibly GPS status or number of satellites) - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong Unk26 { - get { return unk26_; } - set { - unk26_ = value; - } - } - - /// Field number for the "unk28" field. - public const int Unk28FieldNumber = 28; - private ulong unk28_; - /// - /// Always 1 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong Unk28 { - get { return unk28_; } - set { - unk28_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as LocationFix); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(LocationFix other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Provider != other.Provider) return false; - if (TimestampSinceStart != other.TimestampSinceStart) return false; - if (Latitude != other.Latitude) return false; - if (Longitude != other.Longitude) return false; - if (Unk20 != other.Unk20) return false; - if (Altitude != other.Altitude) return false; - if (Unk22 != other.Unk22) return false; - if (Unk26 != other.Unk26) return false; - if (Unk28 != other.Unk28) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (Provider.Length != 0) hash ^= Provider.GetHashCode(); - if (TimestampSinceStart != 0UL) hash ^= TimestampSinceStart.GetHashCode(); - if (Latitude != 0F) hash ^= Latitude.GetHashCode(); - if (Longitude != 0F) hash ^= Longitude.GetHashCode(); - if (Unk20 != 0UL) hash ^= Unk20.GetHashCode(); - if (Altitude != 0F) hash ^= Altitude.GetHashCode(); - if (Unk22 != 0UL) hash ^= Unk22.GetHashCode(); - if (Unk26 != 0UL) hash ^= Unk26.GetHashCode(); - if (Unk28 != 0UL) hash ^= Unk28.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (Provider.Length != 0) { - output.WriteRawTag(10); - output.WriteString(Provider); - } - if (TimestampSinceStart != 0UL) { - output.WriteRawTag(16); - output.WriteUInt64(TimestampSinceStart); - } - if (Latitude != 0F) { - output.WriteRawTag(109); - output.WriteFloat(Latitude); - } - if (Longitude != 0F) { - output.WriteRawTag(117); - output.WriteFloat(Longitude); - } - if (Unk20 != 0UL) { - output.WriteRawTag(160, 1); - output.WriteUInt64(Unk20); - } - if (Altitude != 0F) { - output.WriteRawTag(173, 1); - output.WriteFloat(Altitude); - } - if (Unk22 != 0UL) { - output.WriteRawTag(176, 1); - output.WriteUInt64(Unk22); - } - if (Unk26 != 0UL) { - output.WriteRawTag(208, 1); - output.WriteUInt64(Unk26); - } - if (Unk28 != 0UL) { - output.WriteRawTag(224, 1); - output.WriteUInt64(Unk28); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Provider.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Provider); - } - if (TimestampSinceStart != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TimestampSinceStart); - } - if (Latitude != 0F) { - size += 1 + 4; - } - if (Longitude != 0F) { - size += 1 + 4; - } - if (Unk20 != 0UL) { - size += 2 + pb::CodedOutputStream.ComputeUInt64Size(Unk20); - } - if (Altitude != 0F) { - size += 2 + 4; - } - if (Unk22 != 0UL) { - size += 2 + pb::CodedOutputStream.ComputeUInt64Size(Unk22); - } - if (Unk26 != 0UL) { - size += 2 + pb::CodedOutputStream.ComputeUInt64Size(Unk26); - } - if (Unk28 != 0UL) { - size += 2 + pb::CodedOutputStream.ComputeUInt64Size(Unk28); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(LocationFix other) { - if (other == null) { - return; - } - if (other.Provider.Length != 0) { - Provider = other.Provider; - } - if (other.TimestampSinceStart != 0UL) { - TimestampSinceStart = other.TimestampSinceStart; - } - if (other.Latitude != 0F) { - Latitude = other.Latitude; - } - if (other.Longitude != 0F) { - Longitude = other.Longitude; - } - if (other.Unk20 != 0UL) { - Unk20 = other.Unk20; - } - if (other.Altitude != 0F) { - Altitude = other.Altitude; - } - if (other.Unk22 != 0UL) { - Unk22 = other.Unk22; - } - if (other.Unk26 != 0UL) { - Unk26 = other.Unk26; - } - if (other.Unk28 != 0UL) { - Unk28 = other.Unk28; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - Provider = input.ReadString(); - break; - } - case 16: { - TimestampSinceStart = input.ReadUInt64(); - break; - } - case 109: { - Latitude = input.ReadFloat(); - break; - } - case 117: { - Longitude = input.ReadFloat(); - break; - } - case 160: { - Unk20 = input.ReadUInt64(); - break; - } - case 173: { - Altitude = input.ReadFloat(); - break; - } - case 176: { - Unk22 = input.ReadUInt64(); - break; - } - case 208: { - Unk26 = input.ReadUInt64(); - break; - } - case 224: { - Unk28 = input.ReadUInt64(); - break; - } - } - } - } - - } - - public sealed partial class Unknown5 : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Unknown5()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Signature.Signature.Descriptor.NestedTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown5() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown5(Unknown5 other) : this() { - unk1_ = other.unk1_; - unk2_ = other.unk2_; - unk3_ = other.unk3_.Clone(); - unk4_ = other.unk4_.Clone(); - unk5_ = other.unk5_.Clone(); - unk6_ = other.unk6_; - unk7_ = other.unk7_; - unk8_ = other.unk8_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown5 Clone() { - return new Unknown5(this); - } - - /// Field number for the "unk1" field. - public const int Unk1FieldNumber = 1; - private ulong unk1_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong Unk1 { - get { return unk1_; } - set { - unk1_ = value; - } - } - - /// Field number for the "unk2" field. - public const int Unk2FieldNumber = 2; - private pb::ByteString unk2_ = pb::ByteString.Empty; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pb::ByteString Unk2 { - get { return unk2_; } - set { - unk2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "unk3" field. - public const int Unk3FieldNumber = 3; - private static readonly pb::FieldCodec _repeated_unk3_codec - = pb::FieldCodec.ForFixed32(26); - private readonly pbc::RepeatedField unk3_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Unk3 { - get { return unk3_; } - } - - /// Field number for the "unk4" field. - public const int Unk4FieldNumber = 4; - private static readonly pb::FieldCodec _repeated_unk4_codec - = pb::FieldCodec.ForFixed32(34); - private readonly pbc::RepeatedField unk4_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Unk4 { - get { return unk4_; } - } - - /// Field number for the "unk5" field. - public const int Unk5FieldNumber = 5; - private static readonly pb::FieldCodec _repeated_unk5_codec - = pb::FieldCodec.ForFixed32(42); - private readonly pbc::RepeatedField unk5_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pbc::RepeatedField Unk5 { - get { return unk5_; } - } - - /// Field number for the "unk6" field. - public const int Unk6FieldNumber = 6; - private pb::ByteString unk6_ = pb::ByteString.Empty; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pb::ByteString Unk6 { - get { return unk6_; } - set { - unk6_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "unk7" field. - public const int Unk7FieldNumber = 7; - private pb::ByteString unk7_ = pb::ByteString.Empty; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pb::ByteString Unk7 { - get { return unk7_; } - set { - unk7_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "unk8" field. - public const int Unk8FieldNumber = 8; - private pb::ByteString unk8_ = pb::ByteString.Empty; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public pb::ByteString Unk8 { - get { return unk8_; } - set { - unk8_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as Unknown5); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Unknown5 other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Unk1 != other.Unk1) return false; - if (Unk2 != other.Unk2) return false; - if(!unk3_.Equals(other.unk3_)) return false; - if(!unk4_.Equals(other.unk4_)) return false; - if(!unk5_.Equals(other.unk5_)) return false; - if (Unk6 != other.Unk6) return false; - if (Unk7 != other.Unk7) return false; - if (Unk8 != other.Unk8) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (Unk1 != 0UL) hash ^= Unk1.GetHashCode(); - if (Unk2.Length != 0) hash ^= Unk2.GetHashCode(); - hash ^= unk3_.GetHashCode(); - hash ^= unk4_.GetHashCode(); - hash ^= unk5_.GetHashCode(); - if (Unk6.Length != 0) hash ^= Unk6.GetHashCode(); - if (Unk7.Length != 0) hash ^= Unk7.GetHashCode(); - if (Unk8.Length != 0) hash ^= Unk8.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (Unk1 != 0UL) { - output.WriteRawTag(8); - output.WriteUInt64(Unk1); - } - if (Unk2.Length != 0) { - output.WriteRawTag(18); - output.WriteBytes(Unk2); - } - unk3_.WriteTo(output, _repeated_unk3_codec); - unk4_.WriteTo(output, _repeated_unk4_codec); - unk5_.WriteTo(output, _repeated_unk5_codec); - if (Unk6.Length != 0) { - output.WriteRawTag(50); - output.WriteBytes(Unk6); - } - if (Unk7.Length != 0) { - output.WriteRawTag(58); - output.WriteBytes(Unk7); - } - if (Unk8.Length != 0) { - output.WriteRawTag(66); - output.WriteBytes(Unk8); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Unk1 != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Unk1); - } - if (Unk2.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Unk2); - } - size += unk3_.CalculateSize(_repeated_unk3_codec); - size += unk4_.CalculateSize(_repeated_unk4_codec); - size += unk5_.CalculateSize(_repeated_unk5_codec); - if (Unk6.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Unk6); - } - if (Unk7.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Unk7); - } - if (Unk8.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Unk8); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Unknown5 other) { - if (other == null) { - return; - } - if (other.Unk1 != 0UL) { - Unk1 = other.Unk1; - } - if (other.Unk2.Length != 0) { - Unk2 = other.Unk2; - } - unk3_.Add(other.unk3_); - unk4_.Add(other.unk4_); - unk5_.Add(other.unk5_); - if (other.Unk6.Length != 0) { - Unk6 = other.Unk6; - } - if (other.Unk7.Length != 0) { - Unk7 = other.Unk7; - } - if (other.Unk8.Length != 0) { - Unk8 = other.Unk8; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 8: { - Unk1 = input.ReadUInt64(); - break; - } - case 18: { - Unk2 = input.ReadBytes(); - break; - } - case 26: - case 29: { - unk3_.AddEntriesFrom(input, _repeated_unk3_codec); - break; - } - case 34: - case 37: { - unk4_.AddEntriesFrom(input, _repeated_unk4_codec); - break; - } - case 42: - case 45: { - unk5_.AddEntriesFrom(input, _repeated_unk5_codec); - break; - } - case 50: { - Unk6 = input.ReadBytes(); - break; - } - case 58: { - Unk7 = input.ReadBytes(); - break; - } - case 66: { - Unk8 = input.ReadBytes(); - break; - } - } - } - } - - } - - public sealed partial class SensorInfo : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SensorInfo()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Signature.Signature.Descriptor.NestedTypes[2]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public SensorInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public SensorInfo(SensorInfo other) : this() { - timestampSnapshot_ = other.timestampSnapshot_; - unk3_ = other.unk3_; - unk4_ = other.unk4_; - unk5_ = other.unk5_; - gyroscopeAngle6_ = other.gyroscopeAngle6_; - gyroscopeAngle7_ = other.gyroscopeAngle7_; - gyroscopeAngle8_ = other.gyroscopeAngle8_; - unk10_ = other.unk10_; - unk11_ = other.unk11_; - unk12_ = other.unk12_; - unk13_ = other.unk13_; - unk14_ = other.unk14_; - accelerometerX_ = other.accelerometerX_; - accelerometerY_ = other.accelerometerY_; - accelerometerZ_ = other.accelerometerZ_; - accelerometerAxes_ = other.accelerometerAxes_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public SensorInfo Clone() { - return new SensorInfo(this); - } - - /// Field number for the "timestamp_snapshot" field. - public const int TimestampSnapshotFieldNumber = 1; - private ulong timestampSnapshot_; - /// - /// in ms - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong TimestampSnapshot { - get { return timestampSnapshot_; } - set { - timestampSnapshot_ = value; - } - } - - /// Field number for the "unk3" field. - public const int Unk3FieldNumber = 3; - private ulong unk3_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong Unk3 { - get { return unk3_; } - set { - unk3_ = value; - } - } - - /// Field number for the "unk4" field. - public const int Unk4FieldNumber = 4; - private ulong unk4_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong Unk4 { - get { return unk4_; } - set { - unk4_ = value; - } - } - - /// Field number for the "unk5" field. - public const int Unk5FieldNumber = 5; - private ulong unk5_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong Unk5 { - get { return unk5_; } - set { - unk5_ = value; - } - } - - /// Field number for the "gyroscope_angle6" field. - public const int GyroscopeAngle6FieldNumber = 6; - private double gyroscopeAngle6_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double GyroscopeAngle6 { - get { return gyroscopeAngle6_; } - set { - gyroscopeAngle6_ = value; - } - } - - /// Field number for the "gyroscope_angle7" field. - public const int GyroscopeAngle7FieldNumber = 7; - private double gyroscopeAngle7_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double GyroscopeAngle7 { - get { return gyroscopeAngle7_; } - set { - gyroscopeAngle7_ = value; - } - } - - /// Field number for the "gyroscope_angle8" field. - public const int GyroscopeAngle8FieldNumber = 8; - private double gyroscopeAngle8_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double GyroscopeAngle8 { - get { return gyroscopeAngle8_; } - set { - gyroscopeAngle8_ = value; - } - } - - /// Field number for the "unk10" field. - public const int Unk10FieldNumber = 10; - private ulong unk10_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong Unk10 { - get { return unk10_; } - set { - unk10_ = value; - } - } - - /// Field number for the "unk11" field. - public const int Unk11FieldNumber = 11; - private ulong unk11_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong Unk11 { - get { return unk11_; } - set { - unk11_ = value; - } - } - - /// Field number for the "unk12" field. - public const int Unk12FieldNumber = 12; - private ulong unk12_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong Unk12 { - get { return unk12_; } - set { - unk12_ = value; - } - } - - /// Field number for the "unk13" field. - public const int Unk13FieldNumber = 13; - private ulong unk13_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong Unk13 { - get { return unk13_; } - set { - unk13_ = value; - } - } - - /// Field number for the "unk14" field. - public const int Unk14FieldNumber = 14; - private ulong unk14_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong Unk14 { - get { return unk14_; } - set { - unk14_ = value; - } - } - - /// Field number for the "accelerometer_x" field. - public const int AccelerometerXFieldNumber = 16; - private double accelerometerX_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double AccelerometerX { - get { return accelerometerX_; } - set { - accelerometerX_ = value; - } - } - - /// Field number for the "accelerometer_y" field. - public const int AccelerometerYFieldNumber = 17; - private double accelerometerY_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double AccelerometerY { - get { return accelerometerY_; } - set { - accelerometerY_ = value; - } - } - - /// Field number for the "accelerometer_z" field. - public const int AccelerometerZFieldNumber = 18; - private double accelerometerZ_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public double AccelerometerZ { - get { return accelerometerZ_; } - set { - accelerometerZ_ = value; - } - } - - /// Field number for the "accelerometer_axes" field. - public const int AccelerometerAxesFieldNumber = 19; - private ulong accelerometerAxes_; - /// - /// Always 3 - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong AccelerometerAxes { - get { return accelerometerAxes_; } - set { - accelerometerAxes_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as SensorInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(SensorInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (TimestampSnapshot != other.TimestampSnapshot) return false; - if (Unk3 != other.Unk3) return false; - if (Unk4 != other.Unk4) return false; - if (Unk5 != other.Unk5) return false; - if (GyroscopeAngle6 != other.GyroscopeAngle6) return false; - if (GyroscopeAngle7 != other.GyroscopeAngle7) return false; - if (GyroscopeAngle8 != other.GyroscopeAngle8) return false; - if (Unk10 != other.Unk10) return false; - if (Unk11 != other.Unk11) return false; - if (Unk12 != other.Unk12) return false; - if (Unk13 != other.Unk13) return false; - if (Unk14 != other.Unk14) return false; - if (AccelerometerX != other.AccelerometerX) return false; - if (AccelerometerY != other.AccelerometerY) return false; - if (AccelerometerZ != other.AccelerometerZ) return false; - if (AccelerometerAxes != other.AccelerometerAxes) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (TimestampSnapshot != 0UL) hash ^= TimestampSnapshot.GetHashCode(); - if (Unk3 != 0UL) hash ^= Unk3.GetHashCode(); - if (Unk4 != 0UL) hash ^= Unk4.GetHashCode(); - if (Unk5 != 0UL) hash ^= Unk5.GetHashCode(); - if (GyroscopeAngle6 != 0D) hash ^= GyroscopeAngle6.GetHashCode(); - if (GyroscopeAngle7 != 0D) hash ^= GyroscopeAngle7.GetHashCode(); - if (GyroscopeAngle8 != 0D) hash ^= GyroscopeAngle8.GetHashCode(); - if (Unk10 != 0UL) hash ^= Unk10.GetHashCode(); - if (Unk11 != 0UL) hash ^= Unk11.GetHashCode(); - if (Unk12 != 0UL) hash ^= Unk12.GetHashCode(); - if (Unk13 != 0UL) hash ^= Unk13.GetHashCode(); - if (Unk14 != 0UL) hash ^= Unk14.GetHashCode(); - if (AccelerometerX != 0D) hash ^= AccelerometerX.GetHashCode(); - if (AccelerometerY != 0D) hash ^= AccelerometerY.GetHashCode(); - if (AccelerometerZ != 0D) hash ^= AccelerometerZ.GetHashCode(); - if (AccelerometerAxes != 0UL) hash ^= AccelerometerAxes.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (TimestampSnapshot != 0UL) { - output.WriteRawTag(8); - output.WriteUInt64(TimestampSnapshot); - } - if (Unk3 != 0UL) { - output.WriteRawTag(24); - output.WriteUInt64(Unk3); - } - if (Unk4 != 0UL) { - output.WriteRawTag(32); - output.WriteUInt64(Unk4); - } - if (Unk5 != 0UL) { - output.WriteRawTag(40); - output.WriteUInt64(Unk5); - } - if (GyroscopeAngle6 != 0D) { - output.WriteRawTag(49); - output.WriteDouble(GyroscopeAngle6); - } - if (GyroscopeAngle7 != 0D) { - output.WriteRawTag(57); - output.WriteDouble(GyroscopeAngle7); - } - if (GyroscopeAngle8 != 0D) { - output.WriteRawTag(65); - output.WriteDouble(GyroscopeAngle8); - } - if (Unk10 != 0UL) { - output.WriteRawTag(80); - output.WriteUInt64(Unk10); - } - if (Unk11 != 0UL) { - output.WriteRawTag(88); - output.WriteUInt64(Unk11); - } - if (Unk12 != 0UL) { - output.WriteRawTag(96); - output.WriteUInt64(Unk12); - } - if (Unk13 != 0UL) { - output.WriteRawTag(104); - output.WriteUInt64(Unk13); - } - if (Unk14 != 0UL) { - output.WriteRawTag(112); - output.WriteUInt64(Unk14); - } - if (AccelerometerX != 0D) { - output.WriteRawTag(129, 1); - output.WriteDouble(AccelerometerX); - } - if (AccelerometerY != 0D) { - output.WriteRawTag(137, 1); - output.WriteDouble(AccelerometerY); - } - if (AccelerometerZ != 0D) { - output.WriteRawTag(145, 1); - output.WriteDouble(AccelerometerZ); - } - if (AccelerometerAxes != 0UL) { - output.WriteRawTag(152, 1); - output.WriteUInt64(AccelerometerAxes); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (TimestampSnapshot != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TimestampSnapshot); - } - if (Unk3 != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Unk3); - } - if (Unk4 != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Unk4); - } - if (Unk5 != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Unk5); - } - if (GyroscopeAngle6 != 0D) { - size += 1 + 8; - } - if (GyroscopeAngle7 != 0D) { - size += 1 + 8; - } - if (GyroscopeAngle8 != 0D) { - size += 1 + 8; - } - if (Unk10 != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Unk10); - } - if (Unk11 != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Unk11); - } - if (Unk12 != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Unk12); - } - if (Unk13 != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Unk13); - } - if (Unk14 != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Unk14); - } - if (AccelerometerX != 0D) { - size += 2 + 8; - } - if (AccelerometerY != 0D) { - size += 2 + 8; - } - if (AccelerometerZ != 0D) { - size += 2 + 8; - } - if (AccelerometerAxes != 0UL) { - size += 2 + pb::CodedOutputStream.ComputeUInt64Size(AccelerometerAxes); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(SensorInfo other) { - if (other == null) { - return; - } - if (other.TimestampSnapshot != 0UL) { - TimestampSnapshot = other.TimestampSnapshot; - } - if (other.Unk3 != 0UL) { - Unk3 = other.Unk3; - } - if (other.Unk4 != 0UL) { - Unk4 = other.Unk4; - } - if (other.Unk5 != 0UL) { - Unk5 = other.Unk5; - } - if (other.GyroscopeAngle6 != 0D) { - GyroscopeAngle6 = other.GyroscopeAngle6; - } - if (other.GyroscopeAngle7 != 0D) { - GyroscopeAngle7 = other.GyroscopeAngle7; - } - if (other.GyroscopeAngle8 != 0D) { - GyroscopeAngle8 = other.GyroscopeAngle8; - } - if (other.Unk10 != 0UL) { - Unk10 = other.Unk10; - } - if (other.Unk11 != 0UL) { - Unk11 = other.Unk11; - } - if (other.Unk12 != 0UL) { - Unk12 = other.Unk12; - } - if (other.Unk13 != 0UL) { - Unk13 = other.Unk13; - } - if (other.Unk14 != 0UL) { - Unk14 = other.Unk14; - } - if (other.AccelerometerX != 0D) { - AccelerometerX = other.AccelerometerX; - } - if (other.AccelerometerY != 0D) { - AccelerometerY = other.AccelerometerY; - } - if (other.AccelerometerZ != 0D) { - AccelerometerZ = other.AccelerometerZ; - } - if (other.AccelerometerAxes != 0UL) { - AccelerometerAxes = other.AccelerometerAxes; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 8: { - TimestampSnapshot = input.ReadUInt64(); - break; - } - case 24: { - Unk3 = input.ReadUInt64(); - break; - } - case 32: { - Unk4 = input.ReadUInt64(); - break; - } - case 40: { - Unk5 = input.ReadUInt64(); - break; - } - case 49: { - GyroscopeAngle6 = input.ReadDouble(); - break; - } - case 57: { - GyroscopeAngle7 = input.ReadDouble(); - break; - } - case 65: { - GyroscopeAngle8 = input.ReadDouble(); - break; - } - case 80: { - Unk10 = input.ReadUInt64(); - break; - } - case 88: { - Unk11 = input.ReadUInt64(); - break; - } - case 96: { - Unk12 = input.ReadUInt64(); - break; - } - case 104: { - Unk13 = input.ReadUInt64(); - break; - } - case 112: { - Unk14 = input.ReadUInt64(); - break; - } - case 129: { - AccelerometerX = input.ReadDouble(); - break; - } - case 137: { - AccelerometerY = input.ReadDouble(); - break; - } - case 145: { - AccelerometerZ = input.ReadDouble(); - break; - } - case 152: { - AccelerometerAxes = input.ReadUInt64(); - break; - } - } - } - } - - } - - public sealed partial class DeviceInfo : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceInfo()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Signature.Signature.Descriptor.NestedTypes[3]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public DeviceInfo() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public DeviceInfo(DeviceInfo other) : this() { - deviceId_ = other.deviceId_; - androidBoardName_ = other.androidBoardName_; - androidBootloader_ = other.androidBootloader_; - deviceBrand_ = other.deviceBrand_; - deviceModel_ = other.deviceModel_; - deviceModelIdentifier_ = other.deviceModelIdentifier_; - deviceCommsModel_ = other.deviceCommsModel_; - hardwareManufacturer_ = other.hardwareManufacturer_; - hardwareModel_ = other.hardwareModel_; - firmwareBrand_ = other.firmwareBrand_; - firmwareTags_ = other.firmwareTags_; - firmwareType_ = other.firmwareType_; - firmwareFingerprint_ = other.firmwareFingerprint_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public DeviceInfo Clone() { - return new DeviceInfo(this); - } - - /// Field number for the "device_id" field. - public const int DeviceIdFieldNumber = 1; - private string deviceId_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string DeviceId { - get { return deviceId_; } - set { - deviceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "android_board_name" field. - public const int AndroidBoardNameFieldNumber = 2; - private string androidBoardName_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string AndroidBoardName { - get { return androidBoardName_; } - set { - androidBoardName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "android_bootloader" field. - public const int AndroidBootloaderFieldNumber = 3; - private string androidBootloader_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string AndroidBootloader { - get { return androidBootloader_; } - set { - androidBootloader_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_brand" field. - public const int DeviceBrandFieldNumber = 4; - private string deviceBrand_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string DeviceBrand { - get { return deviceBrand_; } - set { - deviceBrand_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_model" field. - public const int DeviceModelFieldNumber = 5; - private string deviceModel_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string DeviceModel { - get { return deviceModel_; } - set { - deviceModel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_model_identifier" field. - public const int DeviceModelIdentifierFieldNumber = 6; - private string deviceModelIdentifier_ = ""; - /// - /// Android only - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string DeviceModelIdentifier { - get { return deviceModelIdentifier_; } - set { - deviceModelIdentifier_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "device_comms_model" field. - public const int DeviceCommsModelFieldNumber = 7; - private string deviceCommsModel_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string DeviceCommsModel { - get { return deviceCommsModel_; } - set { - deviceCommsModel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "hardware_manufacturer" field. - public const int HardwareManufacturerFieldNumber = 8; - private string hardwareManufacturer_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string HardwareManufacturer { - get { return hardwareManufacturer_; } - set { - hardwareManufacturer_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "hardware_model" field. - public const int HardwareModelFieldNumber = 9; - private string hardwareModel_ = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string HardwareModel { - get { return hardwareModel_; } - set { - hardwareModel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "firmware_brand" field. - public const int FirmwareBrandFieldNumber = 10; - private string firmwareBrand_ = ""; - /// - /// On iOS: "iPhone OS" - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string FirmwareBrand { - get { return firmwareBrand_; } - set { - firmwareBrand_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "firmware_tags" field. - public const int FirmwareTagsFieldNumber = 12; - private string firmwareTags_ = ""; - /// - /// Android only - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string FirmwareTags { - get { return firmwareTags_; } - set { - firmwareTags_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "firmware_type" field. - public const int FirmwareTypeFieldNumber = 13; - private string firmwareType_ = ""; - /// - /// On iOS instead: iOS version - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string FirmwareType { - get { return firmwareType_; } - set { - firmwareType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - /// Field number for the "firmware_fingerprint" field. - public const int FirmwareFingerprintFieldNumber = 14; - private string firmwareFingerprint_ = ""; - /// - /// Android only - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public string FirmwareFingerprint { - get { return firmwareFingerprint_; } - set { - firmwareFingerprint_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as DeviceInfo); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(DeviceInfo other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (DeviceId != other.DeviceId) return false; - if (AndroidBoardName != other.AndroidBoardName) return false; - if (AndroidBootloader != other.AndroidBootloader) return false; - if (DeviceBrand != other.DeviceBrand) return false; - if (DeviceModel != other.DeviceModel) return false; - if (DeviceModelIdentifier != other.DeviceModelIdentifier) return false; - if (DeviceCommsModel != other.DeviceCommsModel) return false; - if (HardwareManufacturer != other.HardwareManufacturer) return false; - if (HardwareModel != other.HardwareModel) return false; - if (FirmwareBrand != other.FirmwareBrand) return false; - if (FirmwareTags != other.FirmwareTags) return false; - if (FirmwareType != other.FirmwareType) return false; - if (FirmwareFingerprint != other.FirmwareFingerprint) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (DeviceId.Length != 0) hash ^= DeviceId.GetHashCode(); - if (AndroidBoardName.Length != 0) hash ^= AndroidBoardName.GetHashCode(); - if (AndroidBootloader.Length != 0) hash ^= AndroidBootloader.GetHashCode(); - if (DeviceBrand.Length != 0) hash ^= DeviceBrand.GetHashCode(); - if (DeviceModel.Length != 0) hash ^= DeviceModel.GetHashCode(); - if (DeviceModelIdentifier.Length != 0) hash ^= DeviceModelIdentifier.GetHashCode(); - if (DeviceCommsModel.Length != 0) hash ^= DeviceCommsModel.GetHashCode(); - if (HardwareManufacturer.Length != 0) hash ^= HardwareManufacturer.GetHashCode(); - if (HardwareModel.Length != 0) hash ^= HardwareModel.GetHashCode(); - if (FirmwareBrand.Length != 0) hash ^= FirmwareBrand.GetHashCode(); - if (FirmwareTags.Length != 0) hash ^= FirmwareTags.GetHashCode(); - if (FirmwareType.Length != 0) hash ^= FirmwareType.GetHashCode(); - if (FirmwareFingerprint.Length != 0) hash ^= FirmwareFingerprint.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (DeviceId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DeviceId); - } - if (AndroidBoardName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(AndroidBoardName); - } - if (AndroidBootloader.Length != 0) { - output.WriteRawTag(26); - output.WriteString(AndroidBootloader); - } - if (DeviceBrand.Length != 0) { - output.WriteRawTag(34); - output.WriteString(DeviceBrand); - } - if (DeviceModel.Length != 0) { - output.WriteRawTag(42); - output.WriteString(DeviceModel); - } - if (DeviceModelIdentifier.Length != 0) { - output.WriteRawTag(50); - output.WriteString(DeviceModelIdentifier); - } - if (DeviceCommsModel.Length != 0) { - output.WriteRawTag(58); - output.WriteString(DeviceCommsModel); - } - if (HardwareManufacturer.Length != 0) { - output.WriteRawTag(66); - output.WriteString(HardwareManufacturer); - } - if (HardwareModel.Length != 0) { - output.WriteRawTag(74); - output.WriteString(HardwareModel); - } - if (FirmwareBrand.Length != 0) { - output.WriteRawTag(82); - output.WriteString(FirmwareBrand); - } - if (FirmwareTags.Length != 0) { - output.WriteRawTag(98); - output.WriteString(FirmwareTags); - } - if (FirmwareType.Length != 0) { - output.WriteRawTag(106); - output.WriteString(FirmwareType); - } - if (FirmwareFingerprint.Length != 0) { - output.WriteRawTag(114); - output.WriteString(FirmwareFingerprint); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (DeviceId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceId); - } - if (AndroidBoardName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AndroidBoardName); - } - if (AndroidBootloader.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(AndroidBootloader); - } - if (DeviceBrand.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceBrand); - } - if (DeviceModel.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceModel); - } - if (DeviceModelIdentifier.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceModelIdentifier); - } - if (DeviceCommsModel.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceCommsModel); - } - if (HardwareManufacturer.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(HardwareManufacturer); - } - if (HardwareModel.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(HardwareModel); - } - if (FirmwareBrand.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FirmwareBrand); - } - if (FirmwareTags.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FirmwareTags); - } - if (FirmwareType.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FirmwareType); - } - if (FirmwareFingerprint.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(FirmwareFingerprint); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(DeviceInfo other) { - if (other == null) { - return; - } - if (other.DeviceId.Length != 0) { - DeviceId = other.DeviceId; - } - if (other.AndroidBoardName.Length != 0) { - AndroidBoardName = other.AndroidBoardName; - } - if (other.AndroidBootloader.Length != 0) { - AndroidBootloader = other.AndroidBootloader; - } - if (other.DeviceBrand.Length != 0) { - DeviceBrand = other.DeviceBrand; - } - if (other.DeviceModel.Length != 0) { - DeviceModel = other.DeviceModel; - } - if (other.DeviceModelIdentifier.Length != 0) { - DeviceModelIdentifier = other.DeviceModelIdentifier; - } - if (other.DeviceCommsModel.Length != 0) { - DeviceCommsModel = other.DeviceCommsModel; - } - if (other.HardwareManufacturer.Length != 0) { - HardwareManufacturer = other.HardwareManufacturer; - } - if (other.HardwareModel.Length != 0) { - HardwareModel = other.HardwareModel; - } - if (other.FirmwareBrand.Length != 0) { - FirmwareBrand = other.FirmwareBrand; - } - if (other.FirmwareTags.Length != 0) { - FirmwareTags = other.FirmwareTags; - } - if (other.FirmwareType.Length != 0) { - FirmwareType = other.FirmwareType; - } - if (other.FirmwareFingerprint.Length != 0) { - FirmwareFingerprint = other.FirmwareFingerprint; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 10: { - DeviceId = input.ReadString(); - break; - } - case 18: { - AndroidBoardName = input.ReadString(); - break; - } - case 26: { - AndroidBootloader = input.ReadString(); - break; - } - case 34: { - DeviceBrand = input.ReadString(); - break; - } - case 42: { - DeviceModel = input.ReadString(); - break; - } - case 50: { - DeviceModelIdentifier = input.ReadString(); - break; - } - case 58: { - DeviceCommsModel = input.ReadString(); - break; - } - case 66: { - HardwareManufacturer = input.ReadString(); - break; - } - case 74: { - HardwareModel = input.ReadString(); - break; - } - case 82: { - FirmwareBrand = input.ReadString(); - break; - } - case 98: { - FirmwareTags = input.ReadString(); - break; - } - case 106: { - FirmwareType = input.ReadString(); - break; - } - case 114: { - FirmwareFingerprint = input.ReadString(); - break; - } - } - } - } - - } - - /// - /// Only appears rarely - /// - public sealed partial class Unknown9 : pb::IMessage { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Unknown9()); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public static pbr::MessageDescriptor Descriptor { - get { return global::POGOProtos.Networking.Signature.Signature.Descriptor.NestedTypes[4]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown9() { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown9(Unknown9 other) : this() { - unk3_ = other.unk3_; - unk5_ = other.unk5_; - unk6_ = other.unk6_; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public Unknown9 Clone() { - return new Unknown9(this); - } - - /// Field number for the "unk3" field. - public const int Unk3FieldNumber = 3; - private ulong unk3_; - /// - /// all of these had 1 as their value - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong Unk3 { - get { return unk3_; } - set { - unk3_ = value; - } - } - - /// Field number for the "unk5" field. - public const int Unk5FieldNumber = 5; - private ulong unk5_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong Unk5 { - get { return unk5_; } - set { - unk5_ = value; - } - } - - /// Field number for the "unk6" field. - public const int Unk6FieldNumber = 6; - private ulong unk6_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public ulong Unk6 { - get { return unk6_; } - set { - unk6_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override bool Equals(object other) { - return Equals(other as Unknown9); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public bool Equals(Unknown9 other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (Unk3 != other.Unk3) return false; - if (Unk5 != other.Unk5) return false; - if (Unk6 != other.Unk6) return false; - return true; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override int GetHashCode() { - int hash = 1; - if (Unk3 != 0UL) hash ^= Unk3.GetHashCode(); - if (Unk5 != 0UL) hash ^= Unk5.GetHashCode(); - if (Unk6 != 0UL) hash ^= Unk6.GetHashCode(); - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void WriteTo(pb::CodedOutputStream output) { - if (Unk3 != 0UL) { - output.WriteRawTag(24); - output.WriteUInt64(Unk3); - } - if (Unk5 != 0UL) { - output.WriteRawTag(40); - output.WriteUInt64(Unk5); - } - if (Unk6 != 0UL) { - output.WriteRawTag(48); - output.WriteUInt64(Unk6); - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public int CalculateSize() { - int size = 0; - if (Unk3 != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Unk3); - } - if (Unk5 != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Unk5); - } - if (Unk6 != 0UL) { - size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Unk6); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(Unknown9 other) { - if (other == null) { - return; - } - if (other.Unk3 != 0UL) { - Unk3 = other.Unk3; - } - if (other.Unk5 != 0UL) { - Unk5 = other.Unk5; - } - if (other.Unk6 != 0UL) { - Unk6 = other.Unk6; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - public void MergeFrom(pb::CodedInputStream input) { - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - input.SkipLastField(); - break; - case 24: { - Unk3 = input.ReadUInt64(); - break; - } - case 40: { - Unk5 = input.ReadUInt64(); - break; - } - case 48: { - Unk6 = input.ReadUInt64(); - break; - } - } - } - } - - } - - } - #endregion - - } - - #endregion - -} - -#endregion Designer generated code diff --git a/POGOProtos.csproj b/POGOProtos.csproj index 37f2308..c91e328 100644 --- a/POGOProtos.csproj +++ b/POGOProtos.csproj @@ -50,7 +50,7 @@ - $(SolutionDir)\packages\Google.Protobuf.3.0.0-beta4\lib\net45\Google.Protobuf.dll + ..\packages\Google.Protobuf.3.0.0\lib\net45\Google.Protobuf.dll True @@ -81,7 +81,7 @@ - + @@ -144,17 +144,24 @@ - - + + + + + + + + + - - - - + + + + @@ -208,10 +215,10 @@ - - - - + + + + @@ -260,10 +267,9 @@ - - + @@ -298,7 +304,9 @@ - + + +