// Copyright (C) 2010-2016  MarketFactory, Inc. All Rights Reserved.
//================================================================================
//   This file is auto-generated; DO NOT EDIT!
//================================================================================

#ifndef __MFAPIGEN_CLIENTDISCONNECTMESSAGE__
#define __MFAPIGEN_CLIENTDISCONNECTMESSAGE__

#include <API/Clients/CPP/Proto/APITypes.h>
#include <API/Clients/CPP/MFAPIClient/MFMessage.h>

#include <iosfwd>
#include <string>
#include <vector>

namespace MFAPI {

/** A request by the client APIs to disconnect from the server. This
 * is     not strictly necessary, but when sent, indicates to the
 * server     that the client disconnected as a result of an explicit
 * request     to do so (it was a 'clean' disconnect). The client
 * session also     logs this message before removing the client
 * completely.
 */

class ClientDisconnectMessage : public MFMessage
{
public:
    static const uint16_t ID = 0xfa02;

    //--------------------------------------------------------------------------
    // Public attributes.

    ClientSessionID_t sessionID;

    Timestamp_t timeDisconnected;

    //--------------------------------------------------------------------------

    ClientDisconnectMessage();
    ~ClientDisconnectMessage();

    bool operator==(const ClientDisconnectMessage&) const;
    bool operator!=(const ClientDisconnectMessage&) const;
    bool operator<(const ClientDisconnectMessage&) const;

    virtual MsgType_t getMsgType() const { return ID; }
    virtual void dump(std::ostream& os, bool pretty) const;
    virtual void read(void*);
    virtual void write(void*) const;
    virtual void dump(void*) const;

};

std::ostream& operator<<(std::ostream& os, const ClientDisconnectMessage& o);

} // MFAPI

#endif
// InclKwds: ClientDisconnectMessage
/*
Brought to you by
/opt/atlassian/bamboo-agent/xml-data/build-dir/GAT-GWY-B3/Messaging/main.py --root /opt/atlassian/bamboo-agent/xml-data/build-dir/GAT-GWY-B3 --commit-date 2016-12-06T18:11:31.205-05:00 --revision 19c07f7ab2ea0612a19fbcabdd4a54e242830e7d --branch master --generated_directory /opt/atlassian/bamboo-agent/xml-data/build-dir/GAT-GWY-B3/build/rh7_3.13.0/release/intel64/generated/Python -o /opt/atlassian/bamboo-agent/xml-data/build-dir/GAT-GWY-B3/build/rh7_3.13.0/release/intel64/generated/API/Clients/CPP/Proto -i /opt/atlassian/bamboo-agent/xml-data/build-dir/GAT-GWY-B3/Messaging/MFProtocol --namespace=MFAPI cppapi /opt/atlassian/bamboo-agent/xml-data/build-dir/GAT-GWY-B3/Messaging/MFProtocol.proto.3130 /opt/atlassian/bamboo-agent/xml-data/build-dir/GAT-GWY-B3/Messaging/MFObsolete.proto.3130 
*/
