// CkServerSentEventW.h: interface for the CkServerSentEventW class.
//
//////////////////////////////////////////////////////////////////////

// This header is generated for Chilkat 11.2.0

#ifndef _CkServerSentEventW_H
#define _CkServerSentEventW_H
	
#include "chilkatDefs.h"
#include "CkString.h"
#include "CkWideCharBase.h"




#if !defined(__sun__) && !defined(__sun)
#pragma pack (push, 8)
#endif
 

// CLASS: CkServerSentEventW
class CK_VISIBLE_PUBLIC CkServerSentEventW  : public CkWideCharBase
{
	

	private:
	
	// Don't allow assignment or copying these objects.
	CkServerSentEventW(const CkServerSentEventW &);
	CkServerSentEventW &operator=(const CkServerSentEventW &);

    public:
	CkServerSentEventW(void);
	virtual ~CkServerSentEventW(void);

	

	static CkServerSentEventW *createNew(void);
	

	
	void CK_VISIBLE_PRIVATE inject(void *impl);

	// May be called when finished with the object to free/dispose of any
	// internal resources held by the object. 
	void dispose(void);

	

	// BEGIN PUBLIC INTERFACE

	// ----------------------
	// Properties
	// ----------------------
	// The data for the server-side event. (If the data field was empty, then this will
	// be empty.)
	void get_Data(CkString &str);
	// The data for the server-side event. (If the data field was empty, then this will
	// be empty.)
	const wchar_t *data(void);

	// The name of the server-side event. (If the event field was not present, then
	// this will be empty.)
	void get_EventName(CkString &str);
	// The name of the server-side event. (If the event field was not present, then
	// this will be empty.)
	const wchar_t *eventName(void);

	// The content of the id field, if present.
	void get_LastEventId(CkString &str);
	// The content of the id field, if present.
	const wchar_t *lastEventId(void);

	// The integer value of the retry field, if it exists; otherwise, 0.
	int get_Retry(void);



	// ----------------------
	// Methods
	// ----------------------
	// Loads the multi-line event text into this object. For example, the eventText for a
	// Firebase event might look like this:event: put
	// data: {"path": "/c", "data": {"foo": true, "bar": false}}
	bool LoadEvent(const wchar_t *eventText);





	// END PUBLIC INTERFACE


};
#if !defined(__sun__) && !defined(__sun)
#pragma pack (pop)
#endif
	
#endif
