本文整理汇总了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;
}
示例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);
}
示例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;
}
示例4: MiStreamRecord
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
public MiStreamRecord (StreamType streamType, string stream)
: base ()
{
Type = streamType;
Stream = stream;
}
示例5: Stream
public Stream(int HabboId, int AchievedItemId, Object AchievedItem, StreamType StreamType)
{
this.HabboId = HabboId;
this.AchievedItemId = AchievedItemId;
this.AchievedItem = AchievedItem;
this.StreamType = StreamType;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例11: StreamWrapper
//
// Readable stream constructor
//
public StreamWrapper(int size, BasicStream s)
{
type_ = StreamType.Read;
s_ = s;
spos_ = 0;
bytes_ = null;
pos_ = 0;
length_ = size;
}
示例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;
}
示例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;
}
示例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;
}
示例15: FeatureRequest
public FeatureRequest(
long userId,
long rssEntryId,
StreamType modelStreamType,
FeatureRequestType featureRequestType)
{
this.UserId = userId;
this.RssEntryId = rssEntryId;
this.StreamType = modelStreamType;
this.Type = featureRequestType;
}