public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (ReadListItems != null ? ReadListItems.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ SharepointServerResourceId.GetHashCode();
         hashCode = (hashCode * 397) ^ (SharepointList != null ? SharepointList.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FilterCriteria != null ? FilterCriteria.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ RequireAllCriteriaToMatch.GetHashCode();
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (Result != null ? Result.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DisplayName != null ? DisplayName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ SharepointServerResourceId.GetHashCode();
         hashCode = (hashCode * 397) ^ (SharepointList != null ? SharepointList.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ReadListItems != null ? ReadListItems.GetHashCode() : 0);
         return(hashCode);
     }
 }
        public bool Equals(SharepointCreateListItemActivity other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(base.Equals(other) &&
                   string.Equals(Result, other.Result) &&
                   SharepointServerResourceId.Equals(other.SharepointServerResourceId) &&
                   string.Equals(SharepointList, other.SharepointList) &&
                   string.Equals(DisplayName, other.DisplayName) &&
                   ReadListItems.SequenceEqual(other.ReadListItems, new SharepointReadListToComparer()));
        }
        public bool Equals(SharepointReadListActivity other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(base.Equals(other) &&
                   ReadListItems.SequenceEqual(other.ReadListItems, new SharepointReadListToComparer()) &&
                   SharepointServerResourceId.Equals(other.SharepointServerResourceId) &&
                   string.Equals(SharepointList, other.SharepointList) &&
                   FilterCriteria.SequenceEqual(other.FilterCriteria, new SharepointSearchToComparer()) &&
                   RequireAllCriteriaToMatch == other.RequireAllCriteriaToMatch);
        }
 public override IEnumerable <StateVariable> GetState()
 {
     return(new[]
     {
         new StateVariable
         {
             Name = "SharepointServerResourceId",
             Type = StateVariable.StateType.Input,
             Value = SharepointServerResourceId.ToString()
         },
         new StateVariable
         {
             Name = "FilterCriteria",
             Type = StateVariable.StateType.Input,
             Value = ActivityHelper.GetSerializedStateValueFromCollection(FilterCriteria)
         },
         new StateVariable
         {
             Name = "ReadListItems",
             Type = StateVariable.StateType.Input,
             Value = ActivityHelper.GetSerializedStateValueFromCollection(ReadListItems)
         },
         new StateVariable
         {
             Name = "SharepointList",
             Type = StateVariable.StateType.Input,
             Value = SharepointList
         },
         new StateVariable
         {
             Name = "RequireAllCriteriaToMatch",
             Type = StateVariable.StateType.Input,
             Value = RequireAllCriteriaToMatch.ToString()
         }
         , new StateVariable
         {
             Name = "DeleteCount",
             Type = StateVariable.StateType.Output,
             Value = DeleteCount
         }
     });
 }
        public override IEnumerable <StateVariable> GetState()
        {
            var serializer    = new Dev2JsonSerializer();
            var readListItems = serializer.Serialize(ReadListItems);

            return(new[]
            {
                new StateVariable
                {
                    Name = "SharepointServerResourceId",
                    Type = StateVariable.StateType.Input,
                    Value = SharepointServerResourceId.ToString()
                },
                new StateVariable
                {
                    Name = "ReadListItems",
                    Type = StateVariable.StateType.Input,
                    Value = readListItems
                },
                new StateVariable
                {
                    Name = "SharepointList",
                    Type = StateVariable.StateType.Input,
                    Value = SharepointList
                },
                new StateVariable
                {
                    Name = "UniqueID",
                    Type = StateVariable.StateType.Input,
                    Value = UniqueID
                },
                new StateVariable
                {
                    Name = "Result",
                    Type = StateVariable.StateType.Output,
                    Value = Result
                }
            });
        }
Beispiel #7
0
 public override IEnumerable <StateVariable> GetState()
 {
     return(new[]
     {
         new StateVariable
         {
             Name = "SharepointServerResourceId",
             Type = StateVariable.StateType.Input,
             Value = SharepointServerResourceId.ToString()
         },
         new StateVariable
         {
             Name = "LocalInputPath",
             Type = StateVariable.StateType.Input,
             Value = LocalInputPath
         },
         new StateVariable
         {
             Name = "ServerInputPath",
             Type = StateVariable.StateType.Input,
             Value = ServerInputPath
         },
         new StateVariable
         {
             Name = "Overwrite",
             Type = StateVariable.StateType.Input,
             Value = Overwrite.ToString()
         }
         ,
         new StateVariable
         {
             Name = "Result",
             Type = StateVariable.StateType.Output,
             Value = Result
         }
     });
 }