コード例 #1
0
 internal static bool IsSpider(this UAParser.Device device)
 {
     return(device.Family.Equals("Spider", StringComparison.InvariantCultureIgnoreCase));
 }
コード例 #2
0
ファイル: ClientInfo.cs プロジェクト: niemyjski/ua-parser
 /// <summary>
 /// Constructing the client information
 /// </summary>
 /// <param name="os">the operating system information</param>
 /// <param name="device">the device information</param>
 /// <param name="userAgent">the user agent information</param>
 public ClientInfo(OS os, Device device, UserAgent userAgent)
 {
     OS = os;
       Device = device;
       UserAgent = userAgent;
 }