// This file is automatically generated.
using System;
using System.Text;
using System.Runtime.InteropServices;

namespace Steam4NET
{

	[StructLayout(LayoutKind.Sequential,Pack=4)]
	public class ISteamContentServer001VTable
	{
		public IntPtr LogOn0;
		public IntPtr LogOff1;
		public IntPtr BLoggedOn2;
		public IntPtr SendClientContentAuthRequest3;
		private IntPtr DTorISteamContentServer0014;
	};
	
	[InteropHelp.InterfaceVersion("SteamContentServer001")]
	public class ISteamContentServer001 : InteropHelp.NativeWrapper<ISteamContentServer001VTable>
	{
		[return: MarshalAs(UnmanagedType.I1)]
		[UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeLogOnU( IntPtr thisptr, UInt32 uContentServerID );
		public bool LogOn( UInt32 uContentServerID ) 
		{
			return this.GetFunction<NativeLogOnU>( this.Functions.LogOn0 )( this.ObjectAddress, uContentServerID ); 
		}
		
		[return: MarshalAs(UnmanagedType.I1)]
		[UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeLogOff( IntPtr thisptr );
		public bool LogOff(  ) 
		{
			return this.GetFunction<NativeLogOff>( this.Functions.LogOff1 )( this.ObjectAddress ); 
		}
		
		[return: MarshalAs(UnmanagedType.I1)]
		[UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate bool NativeBLoggedOn( IntPtr thisptr );
		public bool BLoggedOn(  ) 
		{
			return this.GetFunction<NativeBLoggedOn>( this.Functions.BLoggedOn2 )( this.ObjectAddress ); 
		}
		
		[UnmanagedFunctionPointer(CallingConvention.ThisCall)] private delegate void NativeSendClientContentAuthRequestCU( IntPtr thisptr, UInt64 steamID, UInt32 unContentID );
		public void SendClientContentAuthRequest( CSteamID steamID, UInt32 unContentID ) 
		{
			this.GetFunction<NativeSendClientContentAuthRequestCU>( this.Functions.SendClientContentAuthRequest3 )( this.ObjectAddress, steamID.ConvertToUint64(), unContentID ); 
		}
		
	};
}
