File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
src/main/java/com/pokegoapi/api/inventory Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1616package com .pokegoapi .api .inventory ;
1717
1818import POGOProtos .Inventory .EggIncubatorOuterClass ;
19+ import POGOProtos .Inventory .EggIncubatorTypeOuterClass .EggIncubatorType ;
1920import POGOProtos .Networking .Requests .Messages .UseItemEggIncubatorMessageOuterClass .UseItemEggIncubatorMessage ;
2021import POGOProtos .Networking .Requests .RequestTypeOuterClass ;
2122import POGOProtos .Networking .Responses .UseItemEggIncubatorResponseOuterClass .UseItemEggIncubatorResponse ;
@@ -86,4 +87,40 @@ public UseItemEggIncubatorResponse.Result hatchEgg(EggPokemon egg)
8687
8788 return response .getResult ();
8889 }
90+
91+ /**
92+ * Get incubator id.
93+ *
94+ * @return the id
95+ */
96+ public String getId () {
97+ return proto .getId ();
98+ }
99+
100+ /**
101+ * Get incubator type.
102+ *
103+ * @return EggIncubatorType
104+ */
105+ public EggIncubatorType getType () {
106+ return proto .getIncubatorType ();
107+ }
108+
109+ /**
110+ * Get the target distance for egg to hatch.
111+ *
112+ * @return km distance to hatch the egg
113+ */
114+ public double getKmTarget () {
115+ return proto .getTargetKmWalked ();
116+ }
117+
118+ /**
119+ * Get the current distance walked with this incubator.
120+ *
121+ * @return km walked with an egg
122+ */
123+ public double getKmWalked () {
124+ return proto .getStartKmWalked ();
125+ }
89126}
You can’t perform that action at this time.
0 commit comments