예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function serializedSize(\Protobuf\ComputeSizeContext $context)
 {
     $calculator = $context->getSizeCalculator();
     $size = 0;
     if ($this->request_type !== null) {
         $size += 1;
         $size += $calculator->computeVarintSize($this->request_type->value());
     }
     if ($this->request_message !== null) {
         $size += 1;
         $size += $calculator->computeByteStreamSize($this->request_message);
     }
     if ($this->extensions !== null) {
         $size += $this->extensions->serializedSize($context);
     }
     return $size;
 }
예제 #2
0
 /**
  * @return RequestType
  */
 public function getType()
 {
     return RequestType::GET_HATCHED_EGGS();
 }
예제 #3
0
 /**
  * @return RequestType
  */
 public function getType()
 {
     return RequestType::SET_AVATAR();
 }
 /**
  * @return RequestType
  */
 public function getType()
 {
     return RequestType::SET_CONTACT_SETTINGS();
 }
 /**
  * @return RequestType
  */
 public function getType()
 {
     return RequestType::MARK_TUTORIAL_COMPLETE();
 }
 /**
  * @return RequestType
  */
 public function getType()
 {
     return RequestType::DOWNLOAD_ITEM_TEMPLATES();
 }
예제 #7
0
 /**
  * @return RequestType
  */
 public function getType()
 {
     return RequestType::FORT_DETAILS();
 }
예제 #8
0
 /**
  * @return RequestType
  */
 public function getType()
 {
     return RequestType::GET_PLAYER();
 }
예제 #9
0
 /**
  * @return RequestType
  */
 public function getType()
 {
     return RequestType::GET_MAP_OBJECTS();
 }