<?php
// GENERATED CODE -- DO NOT EDIT!

// Original file comments:
//
// Сервис управления системными настройками устройства
namespace Deviceapis\Device\V1;

/**
 * Сервис управления системными настройками устройства
 */
class SystemServiceClient extends \Grpc\BaseStub {

    /**
     * @param string $hostname hostname
     * @param array $opts channel options
     * @param \Grpc\Channel $channel (optional) re-use channel object
     */
    public function __construct($hostname, $opts, $channel = null) {
        parent::__construct($hostname, $opts, $channel);
    }

    /**
     * Метод удаленной перезагрузки
     * @param \Deviceapis\Device\V1\PostSystemRebootRequest $argument input argument
     * @param array $metadata metadata
     * @param array $options call options
     * @return \Grpc\UnaryCall
     */
    public function PostSystemReboot(\Deviceapis\Device\V1\PostSystemRebootRequest $argument,
      $metadata = [], $options = []) {
        return $this->_simpleRequest('/deviceapis.device.v1.SystemService/PostSystemReboot',
        $argument,
        ['\Deviceapis\Device\V1\PostSystemRebootResponse', 'decode'],
        $metadata, $options);
    }

    /**
     * Метод получения общей информации об устройстве
     * @param \Deviceapis\Device\V1\GetSystemInfoRequest $argument input argument
     * @param array $metadata metadata
     * @param array $options call options
     * @return \Grpc\UnaryCall
     */
    public function GetSystemInfo(\Deviceapis\Device\V1\GetSystemInfoRequest $argument,
      $metadata = [], $options = []) {
        return $this->_simpleRequest('/deviceapis.device.v1.SystemService/GetSystemInfo',
        $argument,
        ['\Deviceapis\Device\V1\GetSystemInfoResponse', 'decode'],
        $metadata, $options);
    }

}
