// <auto-generated/>
using System;

namespace Telegram.Api.TL
{
	public partial class TLContactsLink : TLObject 
	{
		public TLContactLinkBase MyLink { get; set; }
		public TLContactLinkBase ForeignLink { get; set; }
		public TLUserBase User { get; set; }

		public TLContactsLink() { }
		public TLContactsLink(TLBinaryReader from)
		{
			Read(from);
		}

		public override TLType TypeId { get { return TLType.ContactsLink; } }

		public override void Read(TLBinaryReader from)
		{
			MyLink = TLFactory.Read<TLContactLinkBase>(from);
			ForeignLink = TLFactory.Read<TLContactLinkBase>(from);
			User = TLFactory.Read<TLUserBase>(from);
		}

		public override void Write(TLBinaryWriter to)
		{
			to.Write(0x3ACE484C);
			to.WriteObject(MyLink);
			to.WriteObject(ForeignLink);
			to.WriteObject(User);
		}
	}
}