Exemple #1
0
        public bool CreateUserCoordinate(double x, double y, int userId)
        {
            UserPosition userPosition = new UserPosition();

            userPosition.X      = x.ToString(); userPosition.Y = y.ToString();
            userPosition.UserId = userId;
            _objectSearchContext.Add(userPosition);
            return(true);
        }
 public void Create(Mission mission)
 {
     if (mission == null)
     {
         throw new ArgumentNullException(nameof(mission));
     }
     _objectSearchContext.Add(mission);
 }
Exemple #3
0
 public void Create(Target target)
 {
     if (target == null)
     {
         throw new ArgumentNullException(nameof(target));
     }
     _objectSearchContext.Add(target);
 }
Exemple #4
0
 public void Create(Image image)
 {
     if (image == null)
     {
         throw new ArgumentNullException(nameof(image));
     }
     _objectSearchContext.Add(image);
 }
 public void Create(Operation operation)
 {
     if (operation == null)
     {
         throw new ArgumentNullException(nameof(operation));
     }
     _objectSearchContext.Add(operation);
 }
 public void Create(DetectedObject detectedObject)
 {
     if (detectedObject == null)
     {
         throw new ArgumentNullException(nameof(detectedObject));
     }
     _objectSearchContext.Add(detectedObject);
 }