#region Copyright //////////////////////////////////////////////////////////////////////////////// // The following FIT Protocol software provided may be used with FIT protocol // devices only and remains the copyrighted property of Dynastream Innovations Inc. // The software is being provided on an "as-is" basis and as an accommodation, // and therefore all warranties, representations, or guarantees of any kind // (whether express, implied or statutory) including, without limitation, // warranties of merchantability, non-infringement, or fitness for a particular // purpose, are specifically disclaimed. // // Copyright 2016 Dynastream Innovations Inc. //////////////////////////////////////////////////////////////////////////////// // ****WARNING**** This file is auto-generated! Do NOT edit this file. // Profile Version = 16.60Release // Tag = production-akw-16.60.00-0-g5d3d436 //////////////////////////////////////////////////////////////////////////////// #endregion using System; using System.Collections.Generic; using System.Diagnostics; using System.Text; using System.IO; namespace Dynastream.Fit { /// /// Implements the VideoTitle profile message. /// public class VideoTitleMesg : Mesg { #region Fields #endregion #region Constructors public VideoTitleMesg() : base(Profile.GetMesg(MesgNum.VideoTitle)) { } public VideoTitleMesg(Mesg mesg) : base(mesg) { } #endregion // Constructors #region Methods /// /// Retrieves the MessageIndex field /// Comment: Long titles will be split into multiple parts /// Returns nullable ushort representing the MessageIndex field public ushort? GetMessageIndex() { return (ushort?)GetFieldValue(254, 0, Fit.SubfieldIndexMainField); } /// /// Set MessageIndex field /// Comment: Long titles will be split into multiple parts /// Nullable field value to be set public void SetMessageIndex(ushort? messageIndex_) { SetFieldValue(254, 0, messageIndex_, Fit.SubfieldIndexMainField); } /// /// Retrieves the MessageCount field /// Comment: Total number of title parts /// Returns nullable ushort representing the MessageCount field public ushort? GetMessageCount() { return (ushort?)GetFieldValue(0, 0, Fit.SubfieldIndexMainField); } /// /// Set MessageCount field /// Comment: Total number of title parts /// Nullable field value to be set public void SetMessageCount(ushort? messageCount_) { SetFieldValue(0, 0, messageCount_, Fit.SubfieldIndexMainField); } /// /// Retrieves the Text field /// Returns byte[] representing the Text field public byte[] GetText() { return (byte[])GetFieldValue(1, 0, Fit.SubfieldIndexMainField); } /// /// Retrieves the Text field /// Returns String representing the Text field public String GetTextAsString() { return Encoding.UTF8.GetString((byte[])GetFieldValue(1, 0, Fit.SubfieldIndexMainField)); } /// /// Set Text field /// field value to be set public void SetText(String text_) { SetFieldValue(1, 0, System.Text.Encoding.UTF8.GetBytes(text_), Fit.SubfieldIndexMainField); } /// /// Set Text field /// field value to be set public void SetText(byte[] text_) { SetFieldValue(1, 0, text_, Fit.SubfieldIndexMainField); } #endregion // Methods } // Class } // namespace