mirror of
https://github.com/inthehand/32feet.git
synced 2026-10-22 16:58:34 +08:00
29 lines
725 B
C#
29 lines
725 B
C#
// 32feet.NET - Personal Area Networking for .NET
|
|
//
|
|
// InTheHand.Net.Obex.ObexResponseMessage
|
|
//
|
|
// Copyright (c) 2020 In The Hand Ltd, All rights reserved.
|
|
// This source code is licensed under the MIT License
|
|
|
|
namespace InTheHand.Net.Obex
|
|
{
|
|
/// <preliminary/>
|
|
public class ObexResponseMessage
|
|
{
|
|
public Headers.ObexResponseHeaders Headers { get; }
|
|
|
|
public ObexStatusCode StatusCode { get; set; }
|
|
|
|
public bool IsSuccessStatusCode
|
|
{
|
|
get
|
|
{
|
|
// return true if success code and final flag
|
|
if (((byte)StatusCode & 0xA0) == 0xA0)
|
|
return true;
|
|
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
} |