// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.

namespace Gst.WebRTC {

	using System;
	using System.Collections;
	using System.Collections.Generic;
	using System.Runtime.InteropServices;

#region Autogenerated code
	[StructLayout(LayoutKind.Sequential)]
	public partial struct WebRTCICECandidatePair : IEquatable<WebRTCICECandidatePair> {

		private IntPtr _local;

		public Gst.WebRTC.WebRTCICECandidate local {
			get { return Gst.WebRTC.WebRTCICECandidate.New (_local); }
		}
		private IntPtr _remote;

		public Gst.WebRTC.WebRTCICECandidate remote {
			get { return Gst.WebRTC.WebRTCICECandidate.New (_remote); }
		}

		public static Gst.WebRTC.WebRTCICECandidatePair Zero = new Gst.WebRTC.WebRTCICECandidatePair ();

		public static Gst.WebRTC.WebRTCICECandidatePair New(IntPtr raw) {
			if (raw == IntPtr.Zero)
				return Gst.WebRTC.WebRTCICECandidatePair.Zero;
			return (Gst.WebRTC.WebRTCICECandidatePair) Marshal.PtrToStructure (raw, typeof (Gst.WebRTC.WebRTCICECandidatePair));
		}

		[DllImport("gstwebrtc-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
		static extern IntPtr gst_webrtc_ice_candidate_pair_get_type();

		public static GLib.GType GType { 
			get {
				IntPtr raw_ret = gst_webrtc_ice_candidate_pair_get_type();
				GLib.GType ret = new GLib.GType(raw_ret);
				return ret;
			}
		}

		public bool Equals (WebRTCICECandidatePair other)
		{
			return true && local.Equals (other.local) && remote.Equals (other.remote);
		}

		public override bool Equals (object other)
		{
			return other is WebRTCICECandidatePair && Equals ((WebRTCICECandidatePair) other);
		}

		public override int GetHashCode ()
		{
			return this.GetType ().FullName.GetHashCode () ^ local.GetHashCode () ^ remote.GetHashCode ();
		}

		public static explicit operator GLib.Value (Gst.WebRTC.WebRTCICECandidatePair boxed)
		{
			GLib.Value val = GLib.Value.Empty;
			val.Init (Gst.WebRTC.WebRTCICECandidatePair.GType);
			val.Val = boxed;
			return val;
		}

		public static explicit operator Gst.WebRTC.WebRTCICECandidatePair (GLib.Value val)
		{
			return (Gst.WebRTC.WebRTCICECandidatePair) val.Val;
		}
#endregion
	}
}
