当前位置: 首页>>代码示例>>C#>>正文


C# StreamType类代码示例

本文整理汇总了C#中StreamType的典型用法代码示例。如果您正苦于以下问题:C# StreamType类的具体用法?C# StreamType怎么用?C# StreamType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


StreamType类属于命名空间,在下文中一共展示了StreamType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ReadAjax

 public ActionResult ReadAjax(StreamType streamType, long id, ShowReadEntries showReadEntries = ShowReadEntries.Hide)
 {
     var entries = this.rssSubscriptionService
         .LoadAllUnreadRssEntriesToReadForCurrentUserFromSubscription(streamType, id, showReadEntries);
     var result = this.Json(entries, JsonRequestBehavior.AllowGet);
     return result;
 }
开发者ID:jstadnicki,项目名称:isthereanynews,代码行数:7,代码来源:StreamController.cs

示例2: GetActivityStreamAsync

        /// <summary>
        /// Gets an activity stream asynchronously.
        /// </summary>
        /// <param name="activityId">The Strava activity id.</param>
        /// <param name="typeFlags">Specifies the type of stream.</param>
        /// <param name="resolution">Specifies the resolution of the stream.</param>
        /// <returns>The stream data.</returns>
        public async Task<List<ActivityStream>> GetActivityStreamAsync(String activityId, StreamType typeFlags, StreamResolution resolution = StreamResolution.All)
        {
            StringBuilder types = new StringBuilder();

            foreach (StreamType type in (StreamType[])Enum.GetValues(typeof(StreamType)))
            {
                if (typeFlags.HasFlag(type))
                {
                    types.Append(type.ToString().ToLower());
                    types.Append(",");
                }
            }

            types.Remove(types.ToString().Length - 1, 1);

            String getUrl = String.Format("{0}/{1}/streams/{2}?{3}&access_token={4}",
                Endpoints.Activity,
                activityId,
                types,
                resolution != StreamResolution.All ? "resolution=" + resolution.ToString().ToLower() : "",
                Authentication.AccessToken
                );

            String json = await WebRequest.SendGetAsync(new Uri(getUrl));

            return Unmarshaller<List<ActivityStream>>.Unmarshal(json);
        }
开发者ID:rnrbrste,项目名称:stravadotnet,代码行数:34,代码来源:StreamClient.cs

示例3: StreamInfo

		private StreamInfo (int streamIndex, StreamType st, String streamName, Dictionary<String, String> attributeDictionary) {
			m_streamIndex = streamIndex;
			m_streamType = st;
			m_language = null;
			m_streamName = streamName;
			m_attributeDictionary = attributeDictionary;
		}
开发者ID:ChangSpivey,项目名称:SubtitleMemorize,代码行数:7,代码来源:StreamInfo.cs

示例4: MiStreamRecord

    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    public MiStreamRecord (StreamType streamType, string stream)
      : base ()
    {
      Type = streamType;

      Stream = stream;
    }
开发者ID:ashumeow,项目名称:android-plus-plus,代码行数:11,代码来源:MiStreamRecord.cs

示例5: Stream

 public Stream(int HabboId, int AchievedItemId, Object AchievedItem, StreamType StreamType)
 {
     this.HabboId = HabboId;
     this.AchievedItemId = AchievedItemId;
     this.AchievedItem = AchievedItem;
     this.StreamType = StreamType;
 }
开发者ID:devMextur,项目名称:BrickEmulator,代码行数:7,代码来源:Stream.cs

示例6: LogFile

        public LogFile(string filename, StreamType streams = StreamType.All, ScriptBlock errorCallback = null)
        {
            fileName = System.IO.Path.GetFileName(filename);
            path = System.IO.Path.GetDirectoryName(filename);

            Streams = streams;
            ErrorCallback = errorCallback;
        }
开发者ID:dbeiler,项目名称:PowerShellLoggingModule,代码行数:8,代码来源:LogFile.cs

示例7: IsStreamEnabled

        public bool IsStreamEnabled( StreamType stream )
        {
            IntPtr error = IntPtr.Zero;
            var value = NativeMethod.Device.rs_is_stream_enabled( device, stream, out error );
            RealSenseException.Handle( error );

            return value != 0;
        }
开发者ID:kaorun55,项目名称:librealsense.net,代码行数:8,代码来源:Device.cs

示例8: GetStreamWidth

        public int GetStreamWidth( StreamType stream )
        {
            IntPtr error = IntPtr.Zero;
            var value = NativeMethod.Device.rs_get_stream_width( device, stream, out error );
            RealSenseException.Handle( error );

            return value;
        }
开发者ID:kaorun55,项目名称:librealsense.net,代码行数:8,代码来源:Device.cs

示例9: GetStreamFormat

        public FormatType GetStreamFormat( StreamType stream )
        {
            IntPtr error = IntPtr.Zero;
            var value = NativeMethod.Device.rs_get_stream_format( device, stream, out error );
            RealSenseException.Handle( error );

            return value;
        }
开发者ID:kaorun55,项目名称:librealsense.net,代码行数:8,代码来源:Device.cs

示例10: FieldRemappingDialog

        /*----------------------------------------------------------------
        ** Constructor
         * 
         * Parameters:  templatePath - the template to be loaded
         *              streamType - the document format of the template
         *              dataSource - new fields for the remapping
        **--------------------------------------------------------------*/
        public FieldRemappingDialog(string templatePath, StreamType streamType, DataSet dataSource)
        {
            InitializeComponent();

            m_template = templatePath;
            m_datasource = dataSource;
            templateStreamType = streamType;
        }
开发者ID:TextControl,项目名称:TextControl.MailMerge.FieldRemapping,代码行数:15,代码来源:FieldRemappingDialog.cs

示例11: StreamWrapper

 //
 // Readable stream constructor
 //
 public StreamWrapper(int size, BasicStream s)
 {
     type_ = StreamType.Read;
     s_ = s;
     spos_ = 0;
     bytes_ = null;
     pos_ = 0;
     length_ = size;
 }
开发者ID:bholl,项目名称:zeroc-ice,代码行数:12,代码来源:StreamWrapper.cs

示例12: HekaDAQOutputStream

 public HekaDAQOutputStream(string name, StreamType streamType, ushort channelNumber, HekaDAQController controller)
     : base(name, controller)
 {
     this.ChannelType = streamType;
     this.ChannelNumber = channelNumber;
     this.MeasurementConversionTarget = (ChannelType == StreamType.DO_PORT || ChannelType == StreamType.XO)
         ? Measurement.UNITLESS : DAQCountUnits;
     this.Controller = controller;
     this.Clock = controller.Clock;
 }
开发者ID:Symphony-DAS,项目名称:symphony-core,代码行数:10,代码来源:HekaDAQOutputStream.cs

示例13: HekaDAQInputStream

 public HekaDAQInputStream(string name, StreamType streamType, ushort channelNumber, HekaDAQController controller)
     : base(name, controller)
 {
     this.ChannelType = streamType;
     this.ChannelNumber = channelNumber;
     this.MeasurementConversionTarget = (ChannelType == StreamType.DIGITAL_IN || ChannelType == StreamType.AUX_IN)
         ? Measurement.UNITLESS : "V";
     this.Controller = controller;
     this.Clock = controller;
 }
开发者ID:physion,项目名称:symphony-core,代码行数:10,代码来源:HekaDAQInputStream.cs

示例14: StreamTypeToIndex

 /** 
     @brief Get the stream index number
     @param[in] StreamType	The stream type
     @return The stream index numebr.
 **/
 public static Int32 StreamTypeToIndex(StreamType type)
 {
     Int32 s = 0;
     while ((Int32)type > 1)
     {
         type = (StreamType)((Int32)type >> 1);
         s++;
     }
     return s;
 }
开发者ID:mbahar94,项目名称:libpxcclr.cs,代码行数:15,代码来源:pxcmcapture.cs

示例15: FeatureRequest

 public FeatureRequest(
     long userId,
     long rssEntryId,
     StreamType modelStreamType,
     FeatureRequestType featureRequestType)
 {
     this.UserId = userId;
     this.RssEntryId = rssEntryId;
     this.StreamType = modelStreamType;
     this.Type = featureRequestType;
 }
开发者ID:jstadnicki,项目名称:isthereanynews,代码行数:11,代码来源:FeatureRequest.cs


注:本文中的StreamType类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。