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

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

/**
 * Сервис управления настройками SOS
 */
class SosServiceClient 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);
    }

    /**
     * Метод редактирования настроек SOS
     * @param \Deviceapis\Device\V1\EditSosRequest $argument input argument
     * @param array $metadata metadata
     * @param array $options call options
     * @return \Grpc\UnaryCall
     */
    public function EditSos(\Deviceapis\Device\V1\EditSosRequest $argument,
      $metadata = [], $options = []) {
        return $this->_simpleRequest('/deviceapis.device.v1.SosService/EditSos',
        $argument,
        ['\Deviceapis\Device\V1\EditSosResponse', 'decode'],
        $metadata, $options);
    }

    /**
     * Метод получения настроек SOS
     * @param \Deviceapis\Device\V1\GetSosRequest $argument input argument
     * @param array $metadata metadata
     * @param array $options call options
     * @return \Grpc\UnaryCall
     */
    public function GetSos(\Deviceapis\Device\V1\GetSosRequest $argument,
      $metadata = [], $options = []) {
        return $this->_simpleRequest('/deviceapis.device.v1.SosService/GetSos',
        $argument,
        ['\Deviceapis\Device\V1\GetSosResponse', 'decode'],
        $metadata, $options);
    }

}
