//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.296
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace Pluto.Api {
    using System;
    using RemObjects.SDK;
    using RemObjects.SDK.Types;
    using RemObjects.SDK.Server;
    
    [RemObjects.SDK.Server.EventSinkProxy(Name="MailboxEvents", EventSink=typeof(IMailboxEvents))]
    public class MailboxEvents_EventSinkProxy : RemObjects.SDK.Server.EventSinkProxy, IMailboxEvents {
        public MailboxEvents_EventSinkProxy(RemObjects.SDK.IMessage aMessage, RemObjects.SDK.Server.IServerEventChannel aServerEventChannel, RemObjects.SDK.Server.IEventTargets aEventTargets) : 
                base(aMessage, aServerEventChannel, aEventTargets) {
        }
        protected override string @__GetInterfaceName() {
            return "MailboxEvents";
        }
        protected override System.Type @__GetEventSinkType() {
            return typeof(IMailboxEvents);
        }
        public virtual void OnMailboxItemsReady() {
            @__Message.InitializeEventMessage(@__ServerEventChannel, @__GetInterfaceName(), "OnMailboxItemsReady");
            @__Message.FinalizeMessage();
            @__ServerEventChannel.DispatchEvent(@__Message, @__GetEventSinkType(), @__EventTargets);
        }
    }
}
