public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (UserId != 0)
            {
                hash ^= UserId.GetHashCode();
            }
            if (ActId != 0)
            {
                hash ^= ActId.GetHashCode();
            }
            if (StartState != 0)
            {
                hash ^= StartState.GetHashCode();
            }
            if (ImmediateFinishState != 0)
            {
                hash ^= ImmediateFinishState.GetHashCode();
            }
            if (AwardState != 0)
            {
                hash ^= AwardState.GetHashCode();
            }
            if (AcceptTime != 0L)
            {
                hash ^= AcceptTime.GetHashCode();
            }
            return(hash);
        }
    public override int GetHashCode()
    {
        int hash = 1;

        if (ActId != 0)
        {
            hash ^= ActId.GetHashCode();
        }
        if (PetrolStationNo != 0)
        {
            hash ^= PetrolStationNo.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
Exemple #3
0
        public async Task <Act> GetActAsync(IAuthenticationScope authenticationScope, ActId actId)
        {
            var mapper     = new ActMapper();
            var actIdIndex = (byte)actId;

            using (var client = CreateClient(authenticationScope))
            {
                var act = await client.GetActAsync(actIdIndex);

                return(mapper.Map(act));
            }
        }