Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OaaS/HeuristicLab.Services.Optimization.Billing/Interfaces/IOptimizationBilling.cs @ 15636

Last change on this file since 15636 was 9645, checked in by spimming, 11 years ago

#1888:

  • Model classes implement new interface to track current state of entity
  • Mark EntityState property as 'not mapped'
  • Set hook to initialize entity as unchanged
  • Extension method for DbContext to apply changes only on modified entity
File size: 1.0 KB
RevLine 
[9619]1using System;
2using System.Collections.Generic;
[9576]3using System.Net.Security;
[9550]4using System.ServiceModel;
5using HeuristicLab.Services.Optimization.Billing.Model;
6
7namespace HeuristicLab.Services.Optimization.Billing.Interfaces {
8  [ServiceContract(ProtectionLevel = ProtectionLevel.EncryptAndSign)]
9  public interface IOptimizationBilling {
[9576]10    [OperationContract]
[9551]11    IList<Product> GetProducts();
[9619]12    IList<Product> GetProductByName(string productName);
[9576]13
[9550]14    // payment methods via enumeration
[9576]15
16    [OperationContract]
[9551]17    void SaveOrder(Order order);
[9576]18
19    [OperationContract]
[9551]20    IList<Order> GetOrdersByState(OrderState state);
[9582]21    IList<Order> GetOrders(string userName);
[9619]22    void UpdateOrder(Order order);
[9582]23
[9619]24    IList<Invoice> GetInvoices(string userName);
[9645]25    void SaveInvoice(Invoice invoice);
[9619]26
[9582]27    User GetUser(string userName);
28    void SaveUser(User user);
[9586]29
30    IList<UsageRecord> GetUsageRecords(string userName);
[9619]31    IList<UsageRecord> GetUsageRecords(string username, DateTime from, DateTime to);
32
[9550]33  }
34}
Note: See TracBrowser for help on using the repository browser.