// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/bell/v1/keyapis_bell_notification_v1.proto // // Original file comments: // // Сервис реализует функционал управления уведомлениями #pragma warning disable 0414, 1591 #region Designer generated code using grpc = global::Grpc.Core; namespace Keyapis.Bell.V1 { /// /// Сервис уведомлений /// public static partial class NotificationService { static readonly string __ServiceName = "keyapis.bell.v1.NotificationService"; [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context) { #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION if (message is global::Google.Protobuf.IBufferMessage) { context.SetPayloadLength(message.CalculateSize()); global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter()); context.Complete(); return; } #endif context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message)); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static class __Helper_MessageCache { public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T)); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage { #if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION if (__Helper_MessageCache.IsBufferMessage) { return parser.ParseFrom(context.PayloadAsReadOnlySequence()); } #endif return parser.ParseFrom(context.PayloadAsNewBuffer()); } [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_bell_v1_PostNotificationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Bell.V1.PostNotificationRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_bell_v1_PostNotificationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Bell.V1.PostNotificationResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_bell_v1_GetNotificationRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Bell.V1.GetNotificationRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_bell_v1_GetNotificationResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Bell.V1.GetNotificationResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_bell_v1_GetNotificationListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Bell.V1.GetNotificationListRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_bell_v1_GetNotificationListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Bell.V1.GetNotificationListResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_bell_v1_GetNotificationCountRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Bell.V1.GetNotificationCountRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_bell_v1_GetNotificationCountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Bell.V1.GetNotificationCountResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_bell_v1_PostNotificationViewRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Bell.V1.PostNotificationViewRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_bell_v1_PostNotificationViewResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Bell.V1.PostNotificationViewResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_bell_v1_PostNotificationViewOrponRoomNumberRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Bell.V1.PostNotificationViewOrponRoomNumberRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_bell_v1_PostNotificationViewOrponRoomNumberResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Bell.V1.PostNotificationViewOrponRoomNumberResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PostNotification = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PostNotification", __Marshaller_keyapis_bell_v1_PostNotificationRequest, __Marshaller_keyapis_bell_v1_PostNotificationResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetNotification = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetNotification", __Marshaller_keyapis_bell_v1_GetNotificationRequest, __Marshaller_keyapis_bell_v1_GetNotificationResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetNotificationList = new grpc::Method( grpc::MethodType.ServerStreaming, __ServiceName, "GetNotificationList", __Marshaller_keyapis_bell_v1_GetNotificationListRequest, __Marshaller_keyapis_bell_v1_GetNotificationListResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetNotificationCount = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetNotificationCount", __Marshaller_keyapis_bell_v1_GetNotificationCountRequest, __Marshaller_keyapis_bell_v1_GetNotificationCountResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PostNotificationView = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PostNotificationView", __Marshaller_keyapis_bell_v1_PostNotificationViewRequest, __Marshaller_keyapis_bell_v1_PostNotificationViewResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PostNotificationViewOrponRoomNumber = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PostNotificationViewOrponRoomNumber", __Marshaller_keyapis_bell_v1_PostNotificationViewOrponRoomNumberRequest, __Marshaller_keyapis_bell_v1_PostNotificationViewOrponRoomNumberResponse); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::Keyapis.Bell.V1.KeyapisBellNotificationV1Reflection.Descriptor.Services[0]; } } /// Base class for server-side implementations of NotificationService [grpc::BindServiceMethod(typeof(NotificationService), "BindService")] public abstract partial class NotificationServiceBase { /// /// Метод сохранения уведомления. /// Поддерживает только создание. /// Метод доступен для: service /// /// The request received from the client. /// The context of the server-side call handler being invoked. /// The response to send back to the client (wrapped by a task). [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task PostNotification(global::Keyapis.Bell.V1.PostNotificationRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения уведомления. /// Метод доступен для: admin, manager, master, slave, service /// /// The request received from the client. /// The context of the server-side call handler being invoked. /// The response to send back to the client (wrapped by a task). [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task GetNotification(global::Keyapis.Bell.V1.GetNotificationRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения списка уведомлений. /// Метод доступен для: admin, manager, master, slave, service /// /// The request received from the client. /// Used for sending responses back to the client. /// The context of the server-side call handler being invoked. /// A task indicating completion of the handler. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task GetNotificationList(global::Keyapis.Bell.V1.GetNotificationListRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения количества уведомлений. /// Метод доступен для: admin, manager, master, slave, service /// /// The request received from the client. /// The context of the server-side call handler being invoked. /// The response to send back to the client (wrapped by a task). [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task GetNotificationCount(global::Keyapis.Bell.V1.GetNotificationCountRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод изменения статуса уведомления на "Просмотрено". /// Метод доступен для: master, slave, service /// /// The request received from the client. /// The context of the server-side call handler being invoked. /// The response to send back to the client (wrapped by a task). [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task PostNotificationView(global::Keyapis.Bell.V1.PostNotificationViewRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод изменения статуса уведомлений на "Просмотрено" по ОРПОНу и номеру квартиры. /// Метод доступен для: master, slave, service /// /// The request received from the client. /// The context of the server-side call handler being invoked. /// The response to send back to the client (wrapped by a task). [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task PostNotificationViewOrponRoomNumber(global::Keyapis.Bell.V1.PostNotificationViewOrponRoomNumberRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for NotificationService public partial class NotificationServiceClient : grpc::ClientBase { /// Creates a new client for NotificationService /// The channel to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public NotificationServiceClient(grpc::ChannelBase channel) : base(channel) { } /// Creates a new client for NotificationService that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public NotificationServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected NotificationServiceClient() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected NotificationServiceClient(ClientBaseConfiguration configuration) : base(configuration) { } /// /// Метод сохранения уведомления. /// Поддерживает только создание. /// Метод доступен для: service /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Bell.V1.PostNotificationResponse PostNotification(global::Keyapis.Bell.V1.PostNotificationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostNotification(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод сохранения уведомления. /// Поддерживает только создание. /// Метод доступен для: service /// /// The request to send to the server. /// The options for the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Bell.V1.PostNotificationResponse PostNotification(global::Keyapis.Bell.V1.PostNotificationRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PostNotification, null, options, request); } /// /// Метод сохранения уведомления. /// Поддерживает только создание. /// Метод доступен для: service /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall PostNotificationAsync(global::Keyapis.Bell.V1.PostNotificationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostNotificationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод сохранения уведомления. /// Поддерживает только создание. /// Метод доступен для: service /// /// The request to send to the server. /// The options for the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall PostNotificationAsync(global::Keyapis.Bell.V1.PostNotificationRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PostNotification, null, options, request); } /// /// Метод получения уведомления. /// Метод доступен для: admin, manager, master, slave, service /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Bell.V1.GetNotificationResponse GetNotification(global::Keyapis.Bell.V1.GetNotificationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetNotification(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения уведомления. /// Метод доступен для: admin, manager, master, slave, service /// /// The request to send to the server. /// The options for the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Bell.V1.GetNotificationResponse GetNotification(global::Keyapis.Bell.V1.GetNotificationRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetNotification, null, options, request); } /// /// Метод получения уведомления. /// Метод доступен для: admin, manager, master, slave, service /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall GetNotificationAsync(global::Keyapis.Bell.V1.GetNotificationRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetNotificationAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения уведомления. /// Метод доступен для: admin, manager, master, slave, service /// /// The request to send to the server. /// The options for the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall GetNotificationAsync(global::Keyapis.Bell.V1.GetNotificationRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetNotification, null, options, request); } /// /// Метод получения списка уведомлений. /// Метод доступен для: admin, manager, master, slave, service /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncServerStreamingCall GetNotificationList(global::Keyapis.Bell.V1.GetNotificationListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetNotificationList(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения списка уведомлений. /// Метод доступен для: admin, manager, master, slave, service /// /// The request to send to the server. /// The options for the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncServerStreamingCall GetNotificationList(global::Keyapis.Bell.V1.GetNotificationListRequest request, grpc::CallOptions options) { return CallInvoker.AsyncServerStreamingCall(__Method_GetNotificationList, null, options, request); } /// /// Метод получения количества уведомлений. /// Метод доступен для: admin, manager, master, slave, service /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Bell.V1.GetNotificationCountResponse GetNotificationCount(global::Keyapis.Bell.V1.GetNotificationCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetNotificationCount(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения количества уведомлений. /// Метод доступен для: admin, manager, master, slave, service /// /// The request to send to the server. /// The options for the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Bell.V1.GetNotificationCountResponse GetNotificationCount(global::Keyapis.Bell.V1.GetNotificationCountRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetNotificationCount, null, options, request); } /// /// Метод получения количества уведомлений. /// Метод доступен для: admin, manager, master, slave, service /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall GetNotificationCountAsync(global::Keyapis.Bell.V1.GetNotificationCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetNotificationCountAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения количества уведомлений. /// Метод доступен для: admin, manager, master, slave, service /// /// The request to send to the server. /// The options for the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall GetNotificationCountAsync(global::Keyapis.Bell.V1.GetNotificationCountRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetNotificationCount, null, options, request); } /// /// Метод изменения статуса уведомления на "Просмотрено". /// Метод доступен для: master, slave, service /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Bell.V1.PostNotificationViewResponse PostNotificationView(global::Keyapis.Bell.V1.PostNotificationViewRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostNotificationView(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод изменения статуса уведомления на "Просмотрено". /// Метод доступен для: master, slave, service /// /// The request to send to the server. /// The options for the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Bell.V1.PostNotificationViewResponse PostNotificationView(global::Keyapis.Bell.V1.PostNotificationViewRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PostNotificationView, null, options, request); } /// /// Метод изменения статуса уведомления на "Просмотрено". /// Метод доступен для: master, slave, service /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall PostNotificationViewAsync(global::Keyapis.Bell.V1.PostNotificationViewRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostNotificationViewAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод изменения статуса уведомления на "Просмотрено". /// Метод доступен для: master, slave, service /// /// The request to send to the server. /// The options for the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall PostNotificationViewAsync(global::Keyapis.Bell.V1.PostNotificationViewRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PostNotificationView, null, options, request); } /// /// Метод изменения статуса уведомлений на "Просмотрено" по ОРПОНу и номеру квартиры. /// Метод доступен для: master, slave, service /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Bell.V1.PostNotificationViewOrponRoomNumberResponse PostNotificationViewOrponRoomNumber(global::Keyapis.Bell.V1.PostNotificationViewOrponRoomNumberRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostNotificationViewOrponRoomNumber(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод изменения статуса уведомлений на "Просмотрено" по ОРПОНу и номеру квартиры. /// Метод доступен для: master, slave, service /// /// The request to send to the server. /// The options for the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Bell.V1.PostNotificationViewOrponRoomNumberResponse PostNotificationViewOrponRoomNumber(global::Keyapis.Bell.V1.PostNotificationViewOrponRoomNumberRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PostNotificationViewOrponRoomNumber, null, options, request); } /// /// Метод изменения статуса уведомлений на "Просмотрено" по ОРПОНу и номеру квартиры. /// Метод доступен для: master, slave, service /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall PostNotificationViewOrponRoomNumberAsync(global::Keyapis.Bell.V1.PostNotificationViewOrponRoomNumberRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostNotificationViewOrponRoomNumberAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод изменения статуса уведомлений на "Просмотрено" по ОРПОНу и номеру квартиры. /// Метод доступен для: master, slave, service /// /// The request to send to the server. /// The options for the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall PostNotificationViewOrponRoomNumberAsync(global::Keyapis.Bell.V1.PostNotificationViewOrponRoomNumberRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PostNotificationViewOrponRoomNumber, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected override NotificationServiceClient NewInstance(ClientBaseConfiguration configuration) { return new NotificationServiceClient(configuration); } } /// Creates service definition that can be registered with a server /// An object implementing the server-side handling logic. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public static grpc::ServerServiceDefinition BindService(NotificationServiceBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_PostNotification, serviceImpl.PostNotification) .AddMethod(__Method_GetNotification, serviceImpl.GetNotification) .AddMethod(__Method_GetNotificationList, serviceImpl.GetNotificationList) .AddMethod(__Method_GetNotificationCount, serviceImpl.GetNotificationCount) .AddMethod(__Method_PostNotificationView, serviceImpl.PostNotificationView) .AddMethod(__Method_PostNotificationViewOrponRoomNumber, serviceImpl.PostNotificationViewOrponRoomNumber).Build(); } /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. /// Note: this method is part of an experimental API that can change or be removed without any prior notice. /// Service methods will be bound by calling AddMethod on this object. /// An object implementing the server-side handling logic. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public static void BindService(grpc::ServiceBinderBase serviceBinder, NotificationServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_PostNotification, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostNotification)); serviceBinder.AddMethod(__Method_GetNotification, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetNotification)); serviceBinder.AddMethod(__Method_GetNotificationList, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.GetNotificationList)); serviceBinder.AddMethod(__Method_GetNotificationCount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetNotificationCount)); serviceBinder.AddMethod(__Method_PostNotificationView, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostNotificationView)); serviceBinder.AddMethod(__Method_PostNotificationViewOrponRoomNumber, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostNotificationViewOrponRoomNumber)); } } } #endregion